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 1tux86-00EqjV-Ie for pgsql-general@arkaria.postgresql.org; Wed, 19 Mar 2025 17:22:58 +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 1tux84-008Xp3-48 for pgsql-general@arkaria.postgresql.org; Wed, 19 Mar 2025 17:22: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 1tux83-008Xnj-PT for pgsql-general@lists.postgresql.org; Wed, 19 Mar 2025 17:22:55 +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 1tux81-003ji3-2T for pgsql-general@postgresql.org; Wed, 19 Mar 2025 17:22:54 +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 52JHMlIq718369; Wed, 19 Mar 2025 13:22:47 -0400 From: Tom Lane To: Adrian Klaver cc: Sebastien Flaesch , M Tarkeshwar Rao , "pgsql-general@postgresql.org" Subject: Re: After upgrading libpq, the same function(PQftype) call returns a different OID In-reply-to: <7a07f957-bb8c-413b-806a-504a5cd12072@aklaver.com> References: <3498256.1742065328@sss.pgh.pa.us> <295e06b4-ff5d-4d82-ba56-1bab24be6bbc@aklaver.com> <7a07f957-bb8c-413b-806a-504a5cd12072@aklaver.com> Comments: In-reply-to Adrian Klaver message dated "Wed, 19 Mar 2025 09:53:31 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <718367.1742404967.1@sss.pgh.pa.us> Date: Wed, 19 Mar 2025 13:22:47 -0400 Message-ID: <718368.1742404967@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Adrian Klaver writes: > On 3/18/25 23:41, Sebastien Flaesch wrote: >> I was not expecting this file to be in a "server" folder, when it's to >> be used for client apps. > Not surprising. As I understand it this is the code used to build the > type entries in the system catalog pg_type. More the other way around: pg_type_d.h is built from the authoritative source files pg_type.h and pg_type.dat, according to the process described here: https://www.postgresql.org/docs/devel/bki.html >> And still, I do not trust the content. Why not? If it's the "Backwards compatibility" comment that's bothering you, a look at pg_type.h will show you that that's only intended to apply to the CASHOID and LSNOID symbols. Everything below that in pg_type_d.h is machine-generated. regards, tom lane