diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2024-04-15 15:41:37 +0300 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2024-04-15 16:00:02 +0300 |
commit | 9dfcac8e15acc3b4d4d5bc02383a56ccb07229fe (patch) | |
tree | a2fb6cbc2b6c1c8ef895d1358a0789ac0bd4dab7 /src/backend/parser/parse_utilcmd.c | |
parent | c3709100be73ad5af7ff536476d4d713bca41b1a (diff) | |
download | postgresql-9dfcac8e15acc3b4d4d5bc02383a56ccb07229fe.tar.gz postgresql-9dfcac8e15acc3b4d4d5bc02383a56ccb07229fe.zip |
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
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
-rw-r--r-- | src/backend/parser/parse_utilcmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |