Received: from smtp.jet.es (smtp.jet.es [194.179.100.25]) by hub.org (8.9.3/8.9.3) with ESMTP id TAA86837 for ; Mon, 16 Aug 1999 19:16:02 -0400 (EDT) (envelope-from nyco@jet.es) Received: from atlante (mail@infon58.jet.es [195.55.156.58]) by smtp.jet.es (8.9.3/8.9.1) with ESMTP id BAA10846 for ; Tue, 17 Aug 1999 01:16:43 GMT X-Envelope-To: Received: from dope by atlante with local (Exim 2.05 #1 (Debian)) id 11GW1T-00003A-00; Tue, 17 Aug 1999 01:18:35 +0200 Date: Tue, 17 Aug 1999 01:18:35 +0200 From: Nicolas Aragon To: pgsql-interfaces@postgresql.org Subject: types oids Message-ID: <19990817011835.A165@atlante> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: Club Delphi Hello, I'm programming with pqlib from Pascal (FPC) and trying to build some classes to encapsulate result sets in a similar way as Delphi. I need to know the type of every field and I've found that PQftype returns an OID. OK, I can query pg_type system table and find out type information. But this leads me to new questions because it seems that standard types aren't hardcoded anywhere. pg_type tells me the name, size and some other information about the type. But what about the "kind" of the type (numeric, text, date...)? I can only think of comparing the name with a list of names for standard types. Is there another simpler method? A standard relation between standard types and their OIDs? If the answer to last question is "no", can I really trust at least the name? If so, since I don't want to make the metadata query before each "regular" query, I'll have to cache it. Is it OK to do it once per connection? I can even think that.... is the user (admin) allowed to change the names of standard types? Another, more trivial question: do you know where to find nice logos for postgres? Thanks in advance Nico http://www.clubdelphi.com/nico/