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 1tuwfm-00EmsS-Ij for pgsql-general@arkaria.postgresql.org; Wed, 19 Mar 2025 16:53:42 +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 1tuwfk-007vBv-Sj for pgsql-general@arkaria.postgresql.org; Wed, 19 Mar 2025 16:53:40 +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.94.2) (envelope-from ) id 1tuwfj-007vBn-S1 for pgsql-general@lists.postgresql.org; Wed, 19 Mar 2025 16:53:40 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tuwff-003nHR-04 for pgsql-general@postgresql.org; Wed, 19 Mar 2025 16:53:39 +0000 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfhigh.phl.internal (Postfix) with ESMTP id A1022114012F; Wed, 19 Mar 2025 12:53:33 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Wed, 19 Mar 2025 12:53:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1742403213; x=1742489613; bh=zd8GAKVpn8GQlzzjjjXdIE++MSQIgrbzpPmoy3oj7CU=; b= ZUCsV6jL0XU+wmMlyz7gjex3ZmV6uAO5fTKHUv9eHkdZbOdBkZ1OYlwi0Vv+NZVv E9Y6X31J9UKw0vHu76K8el+ovd9hdzbUJOP/XgvBcTiarcDwvmmwZlkDYcvrO7RH cthfknKmr82jCygMOSssWxf00I01E2WBBa8pZz2r9OBCf8Vpo6o8bMiNhOa5vLTp 0MaD3nUd8Pi6o92En/FufA6yTUqkG9Mwwo+/eI92YAf8lcjum4qyLlxl+CgOeHMe Y2HQSuuKTBa10R0VWEZ67YUCsvlUPmrDgCp84PNX5963cDPp/+aShc2eQdIqRzr2 8+EkIt4g8QOllXZ7keAK6w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1742403213; x= 1742489613; bh=zd8GAKVpn8GQlzzjjjXdIE++MSQIgrbzpPmoy3oj7CU=; b=l fFy48fOBMMvuhw6u1owN5fFgD4pJ6u4NykRcS+8W3+YLwfarow3Z30BdIZxDqjWZ D1GRErex5+Xce4lYYdYFbgLn1egRojZsoBtIkqfZFfuCSe5XhNIz2U1X1eu3jH5f f6bu1FQZRXqa/lDOkSjdK+YXQ+GzJK/2vpfJzYSyKMCA5LpWU8IBcPmZR7bu3B+X l9zTdJxEmCzutwmuewrEHNWT02579y0tZPZEV+XywogjiGbhRaTyeCTfrd/BTzQl H/VSU9WSZRtIgWixdqDm4gOBiD8jY/XlLcrugeC3D2GNS/r9J3GTvAmFX9o94eHe whUY/XrJKGW/CDewBk2xw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugeehkeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddt vdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepgfdufeekhfevfeel veeiueevhedvuddukeduvddvlefhueeuieejtdeuvdevvdeunecuffhomhgrihhnpehpoh hsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpd hnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehsvggs rghsthhivghnrdhflhgrvghstghhseegjhhsrdgtohhmpdhrtghpthhtohepthhglhessh hsshdrphhghhdrphgrrdhushdprhgtphhtthhopehmrdhtrghrkhgvshhhfigrrhdrrhgr ohesvghrihgtshhsohhnrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlh esphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 19 Mar 2025 12:53:32 -0400 (EDT) Message-ID: <7a07f957-bb8c-413b-806a-504a5cd12072@aklaver.com> Date: Wed, 19 Mar 2025 09:53:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: After upgrading libpq, the same function(PQftype) call returns a different OID To: Sebastien Flaesch , Tom Lane , M Tarkeshwar Rao Cc: "pgsql-general@postgresql.org" References: <3498256.1742065328@sss.pgh.pa.us> <295e06b4-ff5d-4d82-ba56-1bab24be6bbc@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/18/25 23:41, Sebastien Flaesch wrote: > You are right Adrian, I did not search properly I found the header file > here: > > sf@toro:/opt3/dbs/pgs/17.4$ ls -l > include/postgresql/server/catalog/pg_type_d.h > -rw-r--r-- 1 sf sf 9672 Mar 13 17:05 > include/postgresql/server/catalog/pg_type_d.h > > 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. As was mentioned in your previous link: https://www.postgresql.org/docs/17/libpq-exec.html#LIBPQ-PQFTYPE the suggested way to get type information is: "You can query the system table pg_type to obtain the names and properties of the various data types. " > > And still, I do not trust the content. Then do as suggested above. > > Seb > -- Adrian Klaver adrian.klaver@aklaver.com