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