aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist/spgdoinsert.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-04-03 12:38:00 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-04-03 12:38:00 -0400
commit879808e5197c374e431e81fb5599dfea533bb9aa (patch)
tree1d95e7adfbc178066b5dbc2d40c6f742a5b558c8 /src/backend/access/spgist/spgdoinsert.c
parent04e298b826d452ceb838d9fda884a29f229d484d (diff)
downloadpostgresql-879808e5197c374e431e81fb5599dfea533bb9aa.tar.gz
postgresql-879808e5197c374e431e81fb5599dfea533bb9aa.zip
Avoid promising that "ADD COLUMN ... DEFAULT NULL" is free.
The system realizes that DEFAULT NULL is dummy in simple cases, but not if a cast function (such as a length coercion) needs to be applied. It's dubious that suppressing that function call would be appropriate, anyway. For the moment, let's just adjust the docs to say that you should omit the DEFAULT clause if you don't want a rewrite to happen. Per gripe from Amit Langote.
Diffstat (limited to 'src/backend/access/spgist/spgdoinsert.c')
0 files changed, 0 insertions, 0 deletions