Re: Portable interfaces ...

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Portable interfaces ...
Дата
Msg-id Pine.BSO.4.56.0403280010510.25417@leary.csoft.net
обсуждение исходный текст
Ответ на Re: Portable interfaces ...  ("Preston A. Elder" <prez@neuromancy.net>)
Список 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 по дате отправления:

Предыдущее
От: "Preston A. Elder"
Дата:
Сообщение: Re: Portable interfaces ...
Следующее
От: "Stergios Zissakis"
Дата:
Сообщение: ECPG mass retrieval?