Need a SQL to find if table has OIDS

Поиск
Список
Период
Сортировка
Искать

Need a SQL to find if table has OIDS

От:
Francisco Leovey <fleovey@yahoo.com>
Дата:
Hello group
 
Using Postgres 9.0.3
 
I need a SQL statement that will tell me if a given table is defined  WITH (OIDS=TRUE)
I am able to get column names, data types, etc but this eludes me.
 
Thank you

Re: Need a SQL to find if table has OIDS

От:
Andreas Kretschmer <akretschmer@spamfence.net>
Дата:
Francisco Leovey  wrote:

> Hello group
>  
> Using Postgres 9.0.3
>  
> I need a SQL statement that will tell me if a given table is defined  WITH
> (OIDS=TRUE)
> I am able to get column names, data types, etc but this eludes me.

select relhasoids from pg_class where relname = 'your_table';


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°
FAQ