From 9dfcac8e15acc3b4d4d5bc02383a56ccb07229fe Mon Sep 17 00:00:00 2001 From: Alexander Korotkov Date: Mon, 15 Apr 2024 15:41:37 +0300 Subject: Grammar fixes for split/merge partitions code The fixes relate to comments, error messages, and corresponding expected output of regression tests. Discussion: https://postgr.es/m/CAMbWs49DDsknxyoycBqiE72VxzL_sYHF6zqL8dSeNehKPJhkKg%40mail.gmail.com Discussion: https://postgr.es/m/86bfd241-a58c-479a-9a72-2c67a02becf8%40postgrespro.ru Discussion: https://postgr.es/m/CAHewXNkGMPU50QG7V6Q60JGFORfo8LfYO1_GCkCa0VWbmB-fEw%40mail.gmail.com Author: Richard Guo, Dmitry Koval, Tender Wang --- src/backend/parser/parse_utilcmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/parser/parse_utilcmd.c') diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c index ceba0699050..7fd8fbc0b4b 100644 --- a/src/backend/parser/parse_utilcmd.c +++ b/src/backend/parser/parse_utilcmd.c @@ -3492,7 +3492,7 @@ transformPartitionCmdForSplit(CreateStmtContext *cxt, PartitionCmd *partcmd) * transformPartitionCmdForMerge * Analyze the ALTER TABLLE ... MERGE PARTITIONS command * - * Does simple checks for merged partitions. Calculates bound of result + * Does simple checks for merged partitions. Calculates bound of resulting * partition. */ static void @@ -3537,7 +3537,7 @@ transformPartitionCmdForMerge(CreateStmtContext *cxt, PartitionCmd *partcmd) if (equal(name, name2)) ereport(ERROR, (errcode(ERRCODE_DUPLICATE_TABLE), - errmsg("partition with name \"%s\" already used", name->relname)), + errmsg("partition with name \"%s\" is already used", name->relname)), parser_errposition(cxt->pstate, name2->location)); } @@ -3551,7 +3551,7 @@ transformPartitionCmdForMerge(CreateStmtContext *cxt, PartitionCmd *partcmd) partOids = lappend_oid(partOids, partOid); } - /* Allocate bound of result partition. */ + /* Allocate bound of resulting partition. */ Assert(partcmd->bound == NULL); partcmd->bound = makeNode(PartitionBoundSpec); -- cgit v1.2.3