From: Hannu Krosing <hannu@trust.ee>
To: pgsql-interfaces@postgreSQL.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: D'Arcy J.M. Cain <darcy@{druid|vex}.net>
Subject: Re: [INTERFACES] Field types (was Re: Return value of int)
Date: Tue, 04 May 1999 09:59:19 +0300
Message-ID: <372E9AC7.965858D2@trust.ee> (raw)
References: <m10eV5K-0000bIC@druid.net>
"D'Arcy J.M. Cain" wrote:
>
> Thus spake Tom Lane
> > Hugh Lawson <hglawson@nr.infi.net> writes:
> > > I'm just getting started on fiddling with libpq. I am wondering why
> > > this passage from man libpq doesn't address this issue? I'm not being
> > > a smarty here, I just don't know the answer.
> >
> > > PQftype returns the field type associated with the
> > > given field index. The integer returned is an
> > > internal coding of the type.
> >
> > Unless I missed what D'Arcy was getting at, his point was that when
> > PQftype tells you the field type is, say, 23, how do you know what
> > that means?
do "select * from pg_type where oid=23" and work from there on.
The 'internal coding' actually means OID for that type definition row.
(Could someone post a patch for docs ?)
the base types ids are quite stable and could possibly be found in some
.h file,
but anything new you add gets o quite random OID.
------------------
Hannu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: hannu@trust.ee, tgl@sss.pgh.pa.us, darcy@{druid|vex}.net
Subject: Re: [INTERFACES] Field types (was Re: Return value of int)
In-Reply-To: <372E9AC7.965858D2@trust.ee>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox