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 1tubsr-00AA1e-9f for pgsql-general@arkaria.postgresql.org; Tue, 18 Mar 2025 18:41:49 +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 1tubsq-002gwQ-1B for pgsql-general@arkaria.postgresql.org; Tue, 18 Mar 2025 18:41:48 +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 1tubsp-002gtz-0z for pgsql-general@lists.postgresql.org; Tue, 18 Mar 2025 18:41:47 +0000 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tubsk-003cB8-0g for pgsql-general@postgresql.org; Tue, 18 Mar 2025 18:41:46 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 0A31211400CC; Tue, 18 Mar 2025 14:41:41 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Tue, 18 Mar 2025 14:41:41 -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=1742323300; x=1742409700; bh=Biw/pNbVqDsHdSmbpE35p5mIiI8+OSBoN7A8pz8hgUk=; b= rcs/RfMZCrtG5f4suha6RegFThsUTQZHf1ggbVSw9Cpt4vMS+LJUU0RYYDLCrQs8 YX4bTiLt7cWHh0tPnxbBOPEjAVTE/kYDHfGQNhVm0ZCMCKaSCjEUgSKhEH/YHVYE BvvbgV6Myt8dB2V4TxtJ20VDbBbWUxJCV88delXhAiFIQQLimfvBwptwQ+UkRrgQ BX0xjNfB/CjxkaLyFh6dTaNLEkaxkmizZ0nafrLn3V3KSC92za9hYw+ZZSgUvmyl aukA3QdR9SyabBVMUDkHSFZozTpAdrVgSjd3iE2tjikFn1RLOhFTCLnvWulncpw4 lyufceXRh0v0fbXASAOtfQ== 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=1742323300; x= 1742409700; bh=Biw/pNbVqDsHdSmbpE35p5mIiI8+OSBoN7A8pz8hgUk=; b=D niE3C09t9Lls6oR8bgGIaKL9XBfukV7y9PrfSfhrk5hvDsjFj/npTgF/NxOd/fe0 KiXwC+yquOrigK57Fh2lUVN32+Ib9B6aH54d8aWLkrkskihNr01YSeG/GHjwv6Bo WSskmdFX2NuhGJUKtwdeDP98GiytKsEl3Y/Pc1exRhVII4eqfLYMZmUEkfIen9Ta 4QhWHUZT2apc+6R9iSxT/ObSvoyYmYh5W7Pl7ru9CCZjoQZ0Ma8oGK5tkr06K+1G z6YpAStYwsRBBKlNVulIPBxdTg4RNWjiMc+LfG6Ny9jGtO2Nnu42J+lKknS44YXF s40xMnSiwm+biK3yzjsLQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugeefudekucetufdoteggodetrf 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; Tue, 18 Mar 2025 14:41:39 -0400 (EDT) Message-ID: <295e06b4-ff5d-4d82-ba56-1bab24be6bbc@aklaver.com> Date: Tue, 18 Mar 2025 11:41:39 -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> 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/16/25 02:30, Sebastien Flaesch wrote: > > Hello, > > I think the column type identification with PQftype() needs some > review/clarification. > > It's a pity that libpq does not have an API to return directly the > actual type name of a column. > > The doc >  says: > > You can query the system table |pg_type| to obtain the names and > properties of the various data types. *The OIDs of the built-in data > types are defined in the file |catalog/pg_type_d.h| in the > PostgreSQL installation's |include| directory.* > > After building PostgreSQL *17.4* from the sources, I cannot find this > pg_type_d.h header file in the installation directory. Maybe I am > missing some configure option? Went I built from source in ended up in: /usr/local/pgsql/include/server/catalog/ -- Adrian Klaver adrian.klaver@aklaver.com