Fix outdated comment of CopyStmt in gram.y

Started by cca55072 months ago2 messages
#1cca5507
cca5507@qq.com
1 attachment(s)

Hi,

The MERGE command can also be used in COPY TO, but it missing in the comment.

Attach a patch to fix it.

--
Regards,
ChangAo Chen

Attachments:

v1-0001-Fix-outdated-comment-of-CopyStmt-in-gram.y.patchapplication/octet-stream; charset=utf-8; name=v1-0001-Fix-outdated-comment-of-CopyStmt-in-gram.y.patchDownload
From 9269e9f046960c0af8f30d0cb4c9f4db05bf6294 Mon Sep 17 00:00:00 2001
From: ChangAo Chen <cca5507@qq.com>
Date: Mon, 3 Nov 2025 21:58:52 +0800
Subject: [PATCH v1] Fix outdated comment of CopyStmt in gram.y

---
 src/backend/parser/gram.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index a4b29c822e8..a65097f19cf 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -3408,7 +3408,7 @@ ClosePortalStmt:
  *				COPY ( query ) TO file	[WITH] [(options)]
  *
  *				where 'query' can be one of:
- *				{ SELECT | UPDATE | INSERT | DELETE }
+ *				{ SELECT | UPDATE | INSERT | DELETE | MERGE }
  *
  *				and 'file' can be one of:
  *				{ PROGRAM 'command' | STDIN | STDOUT | 'filename' }
-- 
2.51.2

#2Masahiko Sawada
sawada.mshk@gmail.com
In reply to: cca5507 (#1)
Re: Fix outdated comment of CopyStmt in gram.y

On Mon, Nov 3, 2025 at 6:13 AM cca5507 <cca5507@qq.com> wrote:

Hi,

The MERGE command can also be used in COPY TO, but it missing in the comment.

Attach a patch to fix it.

Thank you for the patch. Pushed.

Regards,

--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com