Skip to content

Commit

Permalink
Updated docs for fast column creation with defaults in PostgreSQL 11.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddimmich authored and timgraham committed Nov 26, 2018
1 parent 6275b50 commit 133e793
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/topics/migrations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 133e793

Please sign in to comment.