Re: Add SPLIT PARTITION/MERGE PARTITIONS commands - Mailing list pgsql-hackers

From Noah Misch
Subject Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Date
Msg-id 20240808171351.a9.nmisch@google.com
Whole thread Raw
In response to Re: Add SPLIT PARTITION/MERGE PARTITIONS commands  (Alexander Korotkov <aekorotkov@gmail.com>)
Responses Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
List pgsql-hackers
On Sun, Apr 07, 2024 at 01:22:51AM +0300, Alexander Korotkov wrote:
> I've pushed 0001 and 0002

The partition MERGE (1adf16b8f) and SPLIT (87c21bb94) v17 patches introduced
createPartitionTable() with this code:

    createStmt->relation = newPartName;
...
    wrapper->utilityStmt = (Node *) createStmt;
...
    ProcessUtility(wrapper,
...
    newRel = table_openrv(newPartName, NoLock);

This breaks from the CVE-2014-0062 (commit 5f17304) principle of not repeating
name lookups.  The attached demo uses this defect to make one partition have
two parents.

Attachment

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Fix memory counter update in reorderbuffer
Next
From: Greg Sabino Mullane
Date:
Subject: Re: Enable data checksums by default