postgresql/src/backend
Alvaro Herrera 23cccb17fe 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
2019-06-28 14:51:08 -04:00
..
access Update comment 2019-06-27 15:57:14 +02:00
bootstrap In bootstrap mode, use default signal handling for SIGINT etc. 2019-05-14 10:22:28 -04:00
catalog Upgrade internal error message to external 2019-06-24 10:39:12 +02:00
commands Fix for dropped columns in a partitioned table's default partition 2019-06-28 14:51:08 -04:00
executor Fix misleading comment in nodeIndexonlyscan.c. 2019-06-28 17:13:08 +12:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit Fix more typos and inconsistencies in the tree 2019-06-17 16:13:16 +09:00
lib Fix more typos and inconsistencies in the tree 2019-06-17 16:13:16 +09:00
libpq Fix buffer overflow when parsing SCRAM verifiers in backend 2019-06-17 21:48:17 +09:00
main Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00
nodes Reconcile nodes/*funcs.c with PostgreSQL 12 work. 2019-06-09 14:00:36 -07:00
optimizer Prevent Parallel Hash Join for JOIN_UNIQUE_INNER. 2019-06-19 01:25:57 +12:00
parser Fix typos and inconsistencies in code comments 2019-06-14 09:34:34 +09:00
partitioning Fix for dropped columns in a partitioned table's default partition 2019-06-28 14:51:08 -04:00
po Translation updates 2019-06-17 15:30:20 +02:00
port Update stale comments, and fix comment typos. 2019-06-08 10:12:26 -07:00
postmaster Fix typos and inconsistencies in code comments 2019-06-14 09:34:34 +09:00
regex Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
replication Fix more typos and inconsistencies in the tree 2019-06-17 16:13:16 +09:00
rewrite Fix typos in various places 2019-06-03 13:44:03 +09:00
snowball Update copyright for 2019 2019-01-02 12:44:25 -05:00
statistics Add security checks to the multivariate MCV estimation code. 2019-06-23 18:50:08 +01:00
storage Remove obsolete comments about sempahores from proc.c. 2019-06-21 10:57:07 +12:00
tcop Fix partitioned index creation with foreign partitions 2019-06-26 18:38:51 -04:00
tsearch Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
utils Don't call PG_RETURN_BOOL() in a function not returning Datum. 2019-06-23 12:02:19 -07:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Get rid of jsonpath_gram.h and jsonpath_scanner.h 2019-03-20 11:13:34 +03:00
nls.mk Translation updates 2019-05-20 16:00:53 +02:00