Re: Need a SQL to find if table has OIDS - Mailing list pgsql-novice

From Andreas Kretschmer
Subject Re: Need a SQL to find if table has OIDS
Date
Msg-id 20110613132832.GA5942@tux
Whole thread Raw
In response to Need a SQL to find if table has OIDS  (Francisco Leovey <fleovey@yahoo.com>)
List pgsql-novice
Francisco Leovey <fleovey@yahoo.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°

pgsql-novice by date:

Previous
From: Francisco Leovey
Date:
Subject: Need a SQL to find if table has OIDS
Next
From: "Jean-Yves F. Barbier"
Date:
Subject: Re: how to recover a domain types and constraints? [SOLVED]