diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2021-06-18 07:44:58 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2021-06-18 07:46:21 -0400 |
commit | 6432bfe8a372a1c1d4ee8edc91be7fe9910bf51d (patch) | |
tree | f2fed26584c44999e2e030746077db8badeac798 /src/tutorial/funcs.c | |
parent | 70293e946e60bb7eb58f74656667458406a1b461 (diff) | |
download | postgresql-6432bfe8a372a1c1d4ee8edc91be7fe9910bf51d.tar.gz postgresql-6432bfe8a372a1c1d4ee8edc91be7fe9910bf51d.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/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions