Checks for ALTER TABLE ... SPLIT/MERGE PARTITIONS ... commands
authorAlexander Korotkov <akorotkov@postgresql.org>
Tue, 9 Apr 2024 22:47:00 +0000 (01:47 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Tue, 9 Apr 2024 22:47:21 +0000 (01:47 +0300)
commitc99ef1811a064a94fb78917f35bb5853059a92b7
tree7cfcc33973cd34cdd4b6ead434415cd0059163ef
parentb1b13d2b524e64e3bf3538441366bdc8f6d3beda
Checks for ALTER TABLE ... SPLIT/MERGE PARTITIONS ... commands

Check that the target partition actually belongs to the parent table.

Reported-by: Alexander Lakhin
Discussion: https://postgr.es/m/cd842601-cf1a-9806-f7b7-d2509b93ba61%40gmail.com
Author: Dmitry Koval
src/backend/commands/tablecmds.c
src/backend/parser/parse_utilcmd.c
src/test/regress/expected/partition_merge.out
src/test/regress/expected/partition_split.out
src/test/regress/sql/partition_merge.sql
src/test/regress/sql/partition_split.sql