aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayutils.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2021-06-18 07:44:58 -0400
committerAndrew Dunstan <andrew@dunslane.net>2021-06-18 07:44:58 -0400
commit5b6b5e5ee598ced2dc8e1d08a34d499860a4d15b (patch)
treeec4a5035a1fc9532ea86b1ccf0a7dac8238cf58a /src/backend/utils/adt/arrayutils.c
parent357cb8f07f95665ea533ff534821c22c35b01288 (diff)
downloadpostgresql-5b6b5e5ee598ced2dc8e1d08a34d499860a4d15b.tar.gz
postgresql-5b6b5e5ee598ced2dc8e1d08a34d499860a4d15b.zip
Don't set a fast default for anything but a plain table
The fast default code added in Release 11 omitted to check that the table a fast default was being added to was a plain table. Thus one could be added to a foreign table, which predicably blows up. Here we perform that check. In addition, on the back branches, since some of these might have escaped into the wild, if we encounter a missing value for an attribute of something other than a plain table we ignore it. Fixes bug #17056 Backpatch to release 11, Reviewed by: Andres Freund, Álvaro Herrera and Tom Lane
Diffstat (limited to 'src/backend/utils/adt/arrayutils.c')
0 files changed, 0 insertions, 0 deletions