From: | Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> |
---|---|
To: | "A(dot)Bhuvaneswaran" <bhuvansql(at)myrealbox(dot)com> |
Cc: | Popeanga Marian <pmarian(at)cnlo(dot)ro>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: pg_ ? |
Date: | 2003-05-06 18:46:54 |
Message-ID: | Pine.LNX.4.44.0305061642550.22644-100000@matrix.gatewaynet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Tue, 6 May 2003, A.Bhuvaneswaran wrote:
> > Witch is the system view from where i can get columns for all
> > tables and views ?
> > Just like when pgsql> \d view
>
> pg_class is the *system table* from which you can get the columns of all
> tables and views.
Well just try:
SELECT relname,attname||' : '||typname from pg_attribute,pg_class,pg_type
where attrelid = pg_class.oid and attnum > 1 and atttypid = pg_type.oid
order by relname,attname;
>
> regards,
> bhuvaneswaran
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
--
==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel: +30-210-8981112
fax: +30-210-8981877
email: achill(at)matrix(dot)gatewaynet(dot)com
mantzios(at)softlab(dot)ece(dot)ntua(dot)gr
From | Date | Subject | |
---|---|---|---|
Next Message | Wei Weng | 2003-05-06 19:10:02 | Re: pgsql Replication Proxy (was Re: Replication for a |
Previous Message | Randall Lucas | 2003-05-06 18:46:51 | Re: UNIQUE boolean: only one row may be "true" |