Re: pg_ ? - Mailing list pgsql-sql

From Achilleus Mantzios
Subject Re: pg_ ?
Date
Msg-id Pine.LNX.4.44.0305061642550.22644-100000@matrix.gatewaynet.com
Whole thread Raw
In response to Re: pg_ ?  ("A.Bhuvaneswaran" <bhuvansql@myrealbox.com>)
List 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@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



pgsql-sql by date:

Previous
From: "A.Bhuvaneswaran"
Date:
Subject: Re: pg_ ?
Next
From: "SZUCS Gabor"
Date:
Subject: Re: VACUUM FULL and ALTER TABLE do *nothing* in 7.3.2