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.94.2) (envelope-from ) id 1ts6SG-00FC3R-Qy for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Mar 2025 20:44:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ts6SE-006cUZ-PS for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Mar 2025 20:43:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ts6SE-006cOG-F4 for pgsql-hackers@lists.postgresql.org; Tue, 11 Mar 2025 20:43:58 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ts6SB-002IBX-2Q for pgsql-hackers@lists.postgresql.org; Tue, 11 Mar 2025 20:43:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 52BKhno81649112; Tue, 11 Mar 2025 16:43:49 -0400 From: Tom Lane To: "David G. Johnston" cc: Marcos Pegoraro , jian he , Jeff Davis , Yugo NAGATA , Peter Eisentraut , David Rowley , PostgreSQL Hackers Subject: Re: Document NULL In-reply-to: References: <2074118.1714625223@sss.pgh.pa.us> <6c11f5a2-478c-42af-9208-e82bb710e78a@eisentraut.org> <2674591.1714751043@sss.pgh.pa.us> <20240619123412.7bd1f5fd827120192a24674a@sraoss.co.jp> <20240619141520.9fefb69d051fb112f41bf1d1@sraoss.co.jp> <54757.1718775943@sss.pgh.pa.us> <20240627121425.e0b6fa51b8f3682da11b3a6c@sranhm.sraoss.co.jp> <505f9dfcc6e84a442c6fbdf600! ab1df1e5030603.camel@j-davis.com> <5fbbebb78a9e5ecea8adbbc1ba720dd0ca6d5205.camel@j-davis.com> message dated "Tue, 11 Mar 2025 13:32:00 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1649110.1741725829.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 11 Mar 2025 16:43:49 -0400 Message-ID: <1649111.1741725829@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Tue, Mar 11, 2025 at 1:19 PM Marcos Pegoraro wrote: >> I understand that this page we have more NULL values than everywhere else >> combined, but it's a good opportunity to set a standard for all >> documentation > If someone writes a patch to make everywhere and changes this page > in the process I wouldn't complain. For now there is no such standard, we > use empty string everywhere else, and that isn't a good choice here IMO. > It is probably a good choice for elsewhere since the empty string is our > default. While specific to this page \N reads the best for these examples > IMO. But I'll concede to whatever if others think this choice is a > review/commit blocker. I think that idea (changing all the docs) is a complete nonstarter because people would not understand why the results they get don't look like what it says in the docs. Of course, we could fix that by changing the factory default for \pset null, but that seems like even more of a nonstarter. We can probably get away with having one page that assumes a different \pset null setting, as long as there's a clear about it at the top of the page. regards, tom lane