| From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Checks for ALTER TABLE ... SPLIT/MERGE PARTITIONS ... commands |
| Date: | 2024-04-09 23:03:14 |
| Message-ID: | E1ruKUk-001LkP-Cr@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c99ef1811a064a94fb78917f35bb5853059a92b7
Modified Files
--------------
src/backend/commands/tablecmds.c | 12 ---------
src/backend/parser/parse_utilcmd.c | 39 +++++++++++++++++++++++++++
src/test/regress/expected/partition_merge.out | 29 +++++++++++++++-----
src/test/regress/expected/partition_split.out | 13 +++++++++
src/test/regress/sql/partition_merge.sql | 24 ++++++++++++++---
src/test/regress/sql/partition_split.sql | 15 +++++++++++
6 files changed, 111 insertions(+), 21 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David Rowley | 2024-04-09 23:10:33 | pgsql: Remove unused BumpBlockIsValid macro |
| Previous Message | David Rowley | 2024-04-09 22:43:51 | pgsql: Doc: use "an SQL" instead of "a SQL" |