From 133e79399a0aeecaca7379dd79cc1cc3f8b5e7ae Mon Sep 17 00:00:00 2001 From: Damian Dimmich Date: Mon, 26 Nov 2018 10:47:37 +0400 Subject: [PATCH] Updated docs for fast column creation with defaults in PostgreSQL 11. --- docs/topics/migrations.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt index 3f0a1fa68c..b44f78cc69 100644 --- a/docs/topics/migrations.txt +++ b/docs/topics/migrations.txt @@ -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.