From b16a67157a5140e53747c76b3154a4a95489ea7a Mon Sep 17 00:00:00 2001 From: Shinya Kato Date: Thu, 8 Jan 2026 21:21:59 +0900 Subject: [PATCH v1] Use IsA() macro instead of nodeTag comparison In copy.c, nodeTag was being compared directly, so replaced it with the IsA() predicate macro for consistency. Author: Shinya Kato Reviewed-by: Discussion: https://postgr.es/m/ --- src/backend/commands/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index 0e92396dab7..9c51384ab92 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -488,7 +488,7 @@ defGetCopyRejectLimitOption(DefElem *def) (errcode(ERRCODE_SYNTAX_ERROR), errmsg("%s requires a numeric value", def->defname))); - else if (nodeTag(def->arg) == T_String) + else if (IsA(def->arg, String)) reject_limit = pg_strtoint64(strVal(def->arg)); else reject_limit = defGetInt64(def); -- 2.47.3