Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vvUdm-004jRI-1P for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 06:14:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvUdk-00AI2D-3C for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 06:14:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vvUdk-00AI25-2I for pgsql-hackers@lists.postgresql.org; Thu, 26 Feb 2026 06:14:24 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vvUdh-00000001LFd-2OrP for pgsql-hackers@lists.postgresql.org; Thu, 26 Feb 2026 06:14:24 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-2aadc18f230so3035275ad.3 for ; Wed, 25 Feb 2026 22:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772086460; x=1772691260; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=urNPlIkAtJv31zjJYZV0ERU23jmmrCH+3mAsWEOk2OU=; b=Pih0d4s71LlN2xWkSvBvOAM5YikCkExHuOsGJB+JCDCcdjNoJkX1qejAvM9TKP+SYK DAaZ1ZoWlyKI4fmwMnjrHnkZOhtNd5PIdMfnSClYjtx6ZOiEsunKfS0GyBCBd1RDwKyi RfZZkznC0JMT+QYfsE2uH7tzyboAMATE5uHANfjBkILfRGp86V5t/2gNgpWcbd1wjyLh 8gWKYnwbnbXadCjQJt2GcduIaUVxzL5o9PQpzRZggG3ur376m2KggnIx6NNvNy6vTz8L lZU7sQcLQk1xNrdVRjZSUlgsvquom4AoZiH+PzPCH5SZqj3+laGhmbkp4XtJELc5oSlW LgUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772086460; x=1772691260; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=urNPlIkAtJv31zjJYZV0ERU23jmmrCH+3mAsWEOk2OU=; b=WVRiBgr6GCtihticWfBvEx+gbXwb8Pb7yNkDWcCuDH2aUgC+zKsC0K1SPq50K2Tioh tMORb0HBLTqMD5TVFDYqtN6QiXTafUL+QXvP/UXnZ7ZnxJZQhnQhS+fbg2eLLCMqoiPK nRtmuBRLraeQm1mGEL5uXD2aaXpgf3GfxA41DuEuZ9XDz7Jcp2B/fTDqf2OAXv/Rz4yL Qdqe/V2E9c1momOjTN+LqSOVpLEH5Zm+aBgryUD6IyMZr6uXK8RME0bxir3bEmpVwSpC vwmtHLUUjTJ8NQiL3iiuGqwL+QXv7EAto1ctFpudMaN0irh7phuDU8ig+kjfxKds5IAm 8ObQ== X-Forwarded-Encrypted: i=1; AJvYcCXV9QE426d3ALeDNHzVmDxOwHKHQwm+wrP9tbOWCd/mOdx4yAkI3IA4bl/oGY4aRBDF5J7nS4bhEZIm6AdV@lists.postgresql.org X-Gm-Message-State: AOJu0YwIYmOW6FbWYSj9AEbZwmIk/N+2pfmnrEbTKZi7auPCaCPU/2Yf vCxzs97woBwa2gPCdOi46SiXwtFr23wLmvNl/A4UIs900Z8fsdcS1kna X-Gm-Gg: ATEYQzyw/P4++adZNUi/sMaiW64snhQ6f2CzC9LAHDhLhAjRbjR/nF7tKf1OnFZbuZY GSAuG3hVeK+3u/H6yNNcIPyAcZERvHSRC8wEL/aOb4x16sz2hy8PD3VxMxWkQUUVVBxyZinbpux fUyjyRmjIA7YzZ0QlZwmuGcs91IFoa0ythUgJkKpvEb1bNcv1GZPSD73HFGiXm9EuXMHQ5RSdyu 56VRSC3QpdKN/CMd2JJgFOT/HYuCJV2pOU5rAp5HdwSp9VAmS6tAHi43EabBMNlSnh+E/hkSbES cVlFhVjm9NQfytsKwFWxUx9SQvINiyD3TvqWM+jc6gsvvykcUxK7B3pntWo5LBbbeWJmEv0Cy7N vu5I2norO21hPiWSopV1pWx9z3v2RB3JtrUefIpjJeHztJCzro+CPs3oUOBOw4Gts2sFrrM9m3u PDWiEwwCw8wFLRQEyLjRabGwIAs4j9Yw== X-Received: by 2002:a17:902:e743:b0:2aa:f43d:7c42 with SMTP id d9443c01a7336-2ade99a71c9mr31017485ad.24.1772086459886; Wed, 25 Feb 2026 22:14:19 -0800 (PST) Received: from smtpclient.apple ([203.10.98.27]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2adfb69f9c2sm12326585ad.51.2026.02.25.22.14.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2026 22:14:19 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: Show comments in \dRp+, \dRs+, and \dX+ psql meta-commands From: Chao Li In-Reply-To: <5BBBA7F3-2268-4E0C-96D7-59AA664699C0@gmail.com> Date: Thu, 26 Feb 2026 14:13:44 +0800 Cc: Jim Jones , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: <82b25785-0dc1-46d6-93ac-ce385a3a0bfc@uni-muenster.de> <5BBBA7F3-2268-4E0C-96D7-59AA664699C0@gmail.com> To: Fujii Masao X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Feb 26, 2026, at 13:07, Chao Li wrote: >=20 >=20 >=20 >> On Feb 26, 2026, at 11:32, Fujii Masao wrote: >>=20 >>=20 >>> One unrelated thing caught my attention though: NULLs and empty = strings >>> are both displayed as NULL, which is expected according to >>> CreateComments() in comment.c >>>=20 >>> ... >>> /* Reduce empty-string to NULL case */ >>> if (comment !=3D NULL && strlen(comment) =3D=3D 0) >>> comment =3D NULL; >>> ... >>>=20 >>> However, I couldn't find anything in the docs that clearly says that >>> it's going to be the case -- at least not in comment.sgml. >>>=20 >>> CREATE SEQUENCE s1; >>> COMMENT ON SEQUENCE s1 IS ''; >>> CREATE SEQUENCE s2; >>> COMMENT ON SEQUENCE s2 IS NULL; >>>=20 >>> postgres=3D# \ds+ >>> List of sequences >>> -[ RECORD 1 ]----------- >>> Schema | public >>> Name | s1 >>> Type | sequence >>> Owner | jim >>> Persistence | permanent >>> Size | 8192 bytes >>> Description | (null) >>> -[ RECORD 2 ]----------- >>> Schema | public >>> Name | s2 >>> Type | sequence >>> Owner | jim >>> Persistence | permanent >>> Size | 8192 bytes >>> Description | (null) >>>=20 >>> Is it perhaps an undocumented behaviour? >>=20 >> I'm not sure why this behavior isn't documented, but it seems worth >> addressing in a separate documentation patch. >>=20 >=20 > Actually, I am right about to post a doc patch for that. I noticed = that while reviewing the other patch about comment before the holiday = vacation. My patch will be out today or tomorrow. >=20 > Best regards, > -- > Chao Li (Evan) > HighGo Software Co., Ltd. > https://www.highgo.com/ >=20 Hi Fujii-san, This is the tiny patch to enhance the doc of COMMON ON command. Would = you please take a look? Thanks a lot. = https://www.postgresql.org/message-id/26476097-B1C1-4BA8-AA92-0AD0B8EC7190= %40gmail.com Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/