postgresql/src
Amit Kapila 13a185f54b Allow publications with schema and table of the same schema.
We previously thought that allowing such cases can confuse users when they
specify DROP TABLES IN SCHEMA but that doesn't seem to be the case based
on discussion. This helps to uplift the restriction during
ALTER TABLE ... SET SCHEMA which used to ensure that we couldn't end up
with a publication having both a schema and the same schema's table.

To allow this, we need to forbid having any schema on a publication if
column lists on a table are specified (and vice versa). This is because
otherwise we still need a restriction during ALTER TABLE ... SET SCHEMA to
forbid cases where it could lead to a publication having both a schema and
the same schema's table with column list.

Based on suggestions by Peter Eisentraut.

Author: Hou Zhijie and Vignesh C
Reviewed-By: Peter Smith, Amit Kapila
Backpatch-through: 15, where it was introduced
Discussion: https://postgr.es/m/2729c9e2-9aac-8cda-f2f4-34f2bcc18f4e@enterprisedb.com
2022-09-23 08:21:26 +05:30
..
backend Allow publications with schema and table of the same schema. 2022-09-23 08:21:26 +05:30
bin Allow publications with schema and table of the same schema. 2022-09-23 08:21:26 +05:30
common Use min/max bounds defined by Zstd for compression level 2022-09-22 20:02:40 +09:00
fe_utils meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
include Harmonize more lexer function parameter names. 2022-09-22 13:27:16 -07:00
interfaces Harmonize parameter names in ecpg code. 2022-09-22 12:53:20 -07:00
makefiles aix: No need to use mkldexport when we want to export all symbols 2022-09-09 19:11:49 -07:00
pl meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
port meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
template Move darwin sysroot determination into separate file 2022-09-01 16:54:19 -07:00
test Allow publications with schema and table of the same schema. 2022-09-23 08:21:26 +05:30
timezone meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
tools meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
tutorial Update copyright for 2022 2022-01-07 19:04:57 -05:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Split TESTDIR into TESTLOGDIR and TESTDATADIR 2022-09-19 18:03:17 -07:00
Makefile.shlib aix: No need to use mkldexport when we want to export all symbols 2022-09-09 19:11:49 -07:00
meson.build meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00