Received: from sss.sss.pgh.pa.us (sss.pgh.pa.us [206.210.65.6]) by hub.org (8.9.2/8.9.1) with ESMTP id VAA47720 for ; Thu, 11 Mar 1999 21:00:31 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.sss.pgh.pa.us (8.9.1/8.9.1) with ESMTP id UAA22081; Thu, 11 Mar 1999 20:59:24 -0500 (EST) To: Michael Olivier cc: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] libpq PQftype() to comprehend types? In-reply-to: Your message of Thu, 11 Mar 1999 18:44:02 +0000 <36E80EF2.634DB5DC@local2me.com> Date: Thu, 11 Mar 1999 20:59:23 -0500 Message-ID: <22079.921203963@sss.pgh.pa.us> From: Tom Lane Michael Olivier writes: > Can someone tell me how I can use PQftype() or some other mechanism to > interpret a query result in terms of the data types of the columns? The PQftype value is the OID of the row for the type in the system pg_type catalog. Try SELECT * FROM pg_type WHERE oid = BTW: oid's for the predefined types are consistent across installations, but oid's for user-defined types are not (and shouldn't even be trusted across a save/reload). regards, tom lane