Adjust errcode in checkPartition()
Alexander Korotkov <akorotkov@postgresql.org>
Author:
Alexander Korotkov <akorotkov@postgresql.org>
Date: 2026-01-05T17:56:19Z
Releases:
19 (unreleased)
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>
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/parse_utilcmd.c | modified | +1 −1 |
Discussion
- Add SPLIT PARTITION/MERGE PARTITIONS commands 298 messages · 2022-05-31 → 2026-06-30