| From: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net> |
|---|---|
| To: | pgsql-novice(at)postgresql(dot)org |
| Subject: | Re: Need a SQL to find if table has OIDS |
| Date: | 2011-06-13 13:28:32 |
| Message-ID: | 20110613132832.GA5942@tux |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
Francisco Leovey <fleovey(at)yahoo(dot)com> 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°
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jean-Yves F. Barbier | 2011-06-13 19:22:03 | Re: how to recover a domain types and constraints? [SOLVED] |
| Previous Message | Francisco Leovey | 2011-06-13 11:58:29 | Need a SQL to find if table has OIDS |