From: Kris Jurka <books@ejurka.com>
To: Preston A. Elder <prez@neuromancy.net>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Portable interfaces ...
Date: Sun, 28 Mar 2004 00:13:15 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0403280010510.25417@leary.csoft.net> (raw)
In-Reply-To: <1080412297.23111.147.camel@temple.srealm.net.au>
References: <1080012121.10179.56.camel@temple.srealm.net.au>
<15657.1080018332@sss.pgh.pa.us>
<1080020317.10179.71.camel@temple.srealm.net.au>
<200403261122.43740.peter_e@gmx.net>
<1080412297.23111.147.camel@temple.srealm.net.au>
On Sat, 27 Mar 2004, Preston A. Elder wrote:
> For example, there is nowhere in the docs that tells me "To get the OID
> of column 'y' in table 'x', do:
> SELECT atttypid FROM pg_attribute
> WHERE attrelid = (SELECT relfilenode FROM pg_class
> WHERE relname = 'x')
> AND attname = 'y'
> ". That would be an extremely useful statement to have in the docs.
This is not correct, you want
"... attrelid = (SELECT oid FROM pg_class ..."
not relfilenode.
Kris Jurka
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: books@ejurka.com, prez@neuromancy.net, peter_e@gmx.net, tgl@sss.pgh.pa.us
Subject: Re: Portable interfaces ...
In-Reply-To: <Pine.BSO.4.56.0403280010510.25417@leary.csoft.net>
* 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