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 1uyk3J-00C6N4-UA for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Sep 2025 04:45:57 +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 1uyk3H-004opl-HY for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Sep 2025 04:45:56 +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 1uyk3H-004opd-7i for pgsql-hackers@lists.postgresql.org; Wed, 17 Sep 2025 04:45:56 +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 1uyk3F-000q9f-2z for pgsql-hackers@lists.postgresql.org; Wed, 17 Sep 2025 04:45:55 +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 58H4jnjT1443737; Wed, 17 Sep 2025 00:45:49 -0400 From: Tom Lane To: David Rowley cc: Peter Eisentraut , PostgreSQL Developers Subject: Re: Fixing MSVC's inability to detect elog(ERROR) does not return In-reply-to: References: <1438905.1758081776@sss.pgh.pa.us> Comments: In-reply-to David Rowley message dated "Wed, 17 Sep 2025 16:25:36 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1443735.1758084349.1@sss.pgh.pa.us> Date: Wed, 17 Sep 2025 00:45:49 -0400 Message-ID: <1443736.1758084349@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk David Rowley writes: > On Wed, 17 Sept 2025 at 16:03, Tom Lane wrote: >> It absolutely stands for "predicate". That's an ancient Lisp-ism. > Thanks for the confirmation. I'm happy enough to leave the _p in > there, but at the same time, I don't see the particular reason to > follow some ancient Lisp rule. I'm just saying that that's surely where the gcc crew got it from. I do agree with Peter that we should follow that convention within the narrow realm of compiler intrinsics; but I'm not arguing for running around and renaming random PG functions to something_p. As long as we're delving into weeds: we have another project convention for "_P", which is terminal symbols in our grammar such as NULL_P. Clearly, that "P" is not for "predicate"; I suppose it should be read as "parse" or "parser". Given that large parts of original POSTGRES were written in Lisp, it's a tad hard to believe that whoever chose those names had not heard of the "predicate" convention. I guess he/she figured that it didn't matter because there'd be very little overlap or scope for confusion, and that seems to have been borne out over time. regards, tom lane