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 1vvYX4-007giP-35 for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 10:23:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvYX3-00BjqU-2e for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 10:23:45 +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 1vvYX3-00BjqL-1i for pgsql-hackers@lists.postgresql.org; Thu, 26 Feb 2026 10:23:45 +0000 Received: from udcm-wwu2.uni-muenster.de ([128.176.118.28]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vvYWz-00000001NBF-2jXh for pgsql-hackers@lists.postgresql.org; Thu, 26 Feb 2026 10:23:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=uni-muenster.de; i=@uni-muenster.de; q=dns/txt; s=uniout; t=1772101423; x=1803637423; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=w8wqpgXyW8orN7+aILPraylPP0Ld8aoYfKXDtJYSJOo=; b=QaeX6zBW9fzwZf5fvI3MX4UdQTwcr/hqcok9HzFYr9W0rW1/Rd9WMQs8 4gLi7wTl2QPdB45oqdquDHYKrUeCNgWiK9VKsX9sCWar+sonQIg2Gwq/4 xY0OZrt8tv7w805I4smP2eqhibDOTlRIXb2K6+ItHDK881EIz5n0jiREH quhjYlRyy6YfBCKWTQ1uTPjaBr7cwWkI9FZKiKNjVjmiVJdZnJY1V5kvf aNUs0BiXsFW+0P4IKxPcaYZI4fsT88vCm9yafJOmPQcLCsQFxBsdcqvJH Rh8jvgJMwTGEDM3Ot1EVwpOjauJYXuiTWUuj7w+ZxPSBc+oL8dtnF9v6S A==; X-CSE-ConnectionGUID: jEUamZseTyaJy5sHsi1gOg== X-CSE-MsgGUID: KEmlZ04LRiq+hvJAaDk/2w== X-IronPort-AV: E=Sophos;i="6.21,312,1763420400"; d="scan'208";a="386060088" Received: from secmail.uni-muenster.de ([128.176.118.4]) by UDCM-RELAY2.UNI-MUENSTER.DE with ESMTP; 26 Feb 2026 11:23:42 +0100 Received: from [192.168.178.27] (dynamic-093-133-131-100.93.133.pool.telefonica.de [93.133.131.100]) by SECMAIL.UNI-MUENSTER.DE (Postfix) with ESMTPSA id 1506B20ADF02; Thu, 26 Feb 2026 11:23:41 +0100 (CET) Message-ID: <45be5f61-6153-4f32-a3f9-4392d3e14d48@uni-muenster.de> Date: Thu, 26 Feb 2026 11:23:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Show comments in \dRp+, \dRs+, and \dX+ psql meta-commands To: Fujii Masao Cc: PostgreSQL Hackers References: <82b25785-0dc1-46d6-93ac-ce385a3a0bfc@uni-muenster.de> Content-Language: de-DE, en-GB From: Jim Jones In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 26/02/2026 04:32, Fujii Masao wrote: > I'm not sure why this behavior isn't documented, but it seems worth > addressing in a separate documentation patch. Yeah, it also surprised me a bit. Having a NULL instead of '' in \d* is IMO not that dramatic, but things get different when accessing the catalog directly, e.g. postgres=# \pset null '(null)' postgres=# CREATE TABLE t (id int); CREATE TABLE postgres=# COMMENT ON TABLE t IS ''; COMMENT postgres=# SELECT obj_description('t'::regclass, 'pg_class'); obj_description ----------------- (null) (1 row) Best, Jim