From 469348fb023b127002dca977e93191ddf8981243 Mon Sep 17 00:00:00 2001 From: "Chao Li (Evan)" Date: Thu, 26 Feb 2026 13:43:24 +0800 Subject: [PATCH v1] doc: Clarify that empty COMMENT string removes the comment Clarify the documentation of COMMENT ON to state that specifying an empty string is treated as NULL, meaning that the comment is removed. This makes the behavior explicit and avoids possible confusion about how empty strings are handled. Author: Chao Li Reviewed-by: Discussion: https://postgr.es/m/ --- doc/src/sgml/ref/comment.sgml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/ref/comment.sgml b/doc/src/sgml/ref/comment.sgml index 8d81244910b..e30c7c2917e 100644 --- a/doc/src/sgml/ref/comment.sgml +++ b/doc/src/sgml/ref/comment.sgml @@ -266,7 +266,8 @@ COMMENT ON string_literal - The new comment contents, written as a string literal. + The new comment contents, written as a string literal. An empty string + is treated as NULL (that is, it drops the comment). -- 2.50.1 (Apple Git-155)