From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: A.Bhuvaneswaran <bhuvansql@myrealbox.com>
Cc: Popeanga Marian <pmarian@cnlo.ro>
Cc: pgsql-sql@postgresql.org
Subject: Re: pg_ ?
Date: Tue, 6 May 2003 16:46:54 -0200 (GMT+2)
Message-ID: <Pine.LNX.4.44.0305061642550.22644-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0305061851220.1500-100000@Bhuvan.bksys.co.in>
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@postgresql.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@matrix.gatewaynet.com
mantzios@softlab.ece.ntua.gr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: achill@matrix.gatewaynet.com, bhuvansql@myrealbox.com, pmarian@cnlo.ro
Subject: Re: pg_ ?
In-Reply-To: <Pine.LNX.4.44.0305061642550.22644-100000@matrix.gatewaynet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox