pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Checks for ALTER TABLE ... SPLIT/MERGE PARTITIONS ... commands
Date: Tue, 09 Apr 2024 23:03:14 +0000
Message-ID: <E1ruKUk-001LkP-Cr@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1ruKUk-001LkP-Cr@gemulon.postgresql.org>
Permalink:  ../E1ruKUk-001LkP-Cr@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ruKUk-001LkP-Cr@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Checks for ALTER TABLE ... SPLIT/MERGE PARTITIONS ... commands
  In-Reply-To: <E1ruKUk-001LkP-Cr@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox