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: Adjust errcode in checkPartition()
Date: Mon, 05 Jan 2026 17:56:31 +0000
Message-ID: <E1vcoog-004gOE-23@gemulon.postgresql.org> (raw)

Adjust errcode in checkPartition()

Replace ERRCODE_UNDEFINED_TABLE with ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
for the case where we don't find a parent-child relationship between the
partitioned table and its partition.  In this case, tables are present, but
they are not in a prerequisite state (no relationship).

Discussion: https://postgr.es/m/CAHewXNmBM%2B5qbrJMu60NxPn%2B0y-%3D2wXM-QVVs3xRp8NxFvDb9A%40mail.gmail.com
Author: Tender Wang <tndrwang@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d51a5d8e56922a4343af8e31abef4a3faf95352f

Modified Files
--------------
src/backend/parser/parse_utilcmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



Message-ID: <E1vcoog-004gOE-23@gemulon.postgresql.org>
Permalink:  ../E1vcoog-004gOE-23@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vcoog-004gOE-23@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: Adjust errcode in checkPartition()
  In-Reply-To: <E1vcoog-004gOE-23@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