diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-06-28 14:51:08 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-06-28 14:51:08 -0400 |
commit | 43085a4f693e35d674a9965c484e4e87f18f6d29 (patch) | |
tree | b809c7df2ba52373182ed42f780e4050f4d8b0b3 /src/backend/utils/adt/arrayfuncs.c | |
parent | 6827e46cdf351678f71577efd4736f5d443b6e01 (diff) | |
download | postgresql-43085a4f693e35d674a9965c484e4e87f18f6d29.tar.gz postgresql-43085a4f693e35d674a9965c484e4e87f18f6d29.zip |
Fix for dropped columns in a partitioned table's default partition
We forgot to map column numbers to/from the default partition for
various operations, leading to valid cases failing with spurious
errors, such as
ERROR: attribute N of type some_partition has been dropped
It was also possible that the search for conflicting rows in the default
partition when attaching another partition would fail to detect some.
Secondarily, it was also possible that such a search should be skipped
(because the constraint was implied) but wasn't.
Fix all this by mapping column numbers when necessary.
Reported by: Daniel Wilches
Author: Amit Langote
Discussion: https://postgr.es/m/15873-8c61945d6b3ef87c@postgresql.org
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions