1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Updated docs for fast column creation with defaults in PostgreSQL 11.

This commit is contained in:
Damian Dimmich 2018-11-26 10:47:37 +04:00 committed by Tim Graham
parent 6275b50ac2
commit 133e79399a

View File

@ -67,9 +67,10 @@ PostgreSQL
----------
PostgreSQL is the most capable of all the databases here in terms of schema
support; the only caveat is that adding columns with default values will
cause a full rewrite of the table, for a time proportional to its size.
support.
The only caveat is that prior to PostgreSQL 11, adding columns with default
values causes a full rewrite of the table, for a time proportional to its size.
For this reason, it's recommended you always create new columns with
``null=True``, as this way they will be added immediately.