Re: Portable interfaces ... - Mailing list pgsql-interfaces

From Kris Jurka
Subject Re: Portable interfaces ...
Date
Msg-id Pine.BSO.4.56.0403280010510.25417@leary.csoft.net
Whole thread Raw
In response to Re: Portable interfaces ...  ("Preston A. Elder" <prez@neuromancy.net>)
List pgsql-interfaces

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


pgsql-interfaces by date:

Previous
From: "Preston A. Elder"
Date:
Subject: Re: Portable interfaces ...
Next
From: "Stergios Zissakis"
Date:
Subject: ECPG mass retrieval?