Thread: R: R: Re: schema inspection

R: R: Re: schema inspection

From
"rcolmegna@tiscali.it"
Date:
> pg_catalog.pg_constraint is your (only?) friend.

I have already examintated this table without results.  Seem not to be
a "human-readable" table ....   :(

TIA
Roberto Colmegna




Tiscali ADSL 4 Mega Flat
Naviga senza limiti con l'unica Adsl a 4 Mega di velocità a soli 19,95 € al mese!
Attivala subito e hai GRATIS 2 MESI e l'ATTIVAZIONE.

http://abbonati.tiscali.it/banner/middlepagetracking.html?c=webmailadsl&r=http://abbonati.tiscali.it/adsl/sa/4flat_tc/&a=webmail&z=webmail&t=14


Re: R: R: Re: schema inspection

From
Achilleus Mantzios
Date:
O rcolmegna@tiscali.it έγραψε στις Mar 16, 2006 :

> > pg_catalog.pg_constraint is your (only?) friend.
> 
> I have already examintated this table without results.  Seem not to be 
> a "human-readable" table ....   :(

Right you will have to join against pg_class,
and make it readable.

SELECT c1.relname,c2.relname from pg_constraint cons,pg_class c1, pg_class 
c2 where cons.conrelid=c1.oid and cons.confrelid = c2.oid;

for column(s) names you will have to do extra homework.


> 
> TIA 
> Roberto Colmegna
> 
> 
> 
> 
>         
> Tiscali ADSL 4 Mega Flat
> Naviga senza limiti con l'unica Adsl a 4 Mega di velocitΓ  a soli 19,95 € al mese!
> Attivala subito e hai GRATIS 2 MESI e l'ATTIVAZIONE. 
>
http://abbonati.tiscali.it/banner/middlepagetracking.html?c=webmailadsl&r=http://abbonati.tiscali.it/adsl/sa/4flat_tc/&a=webmail&z=webmail&t=14
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
> 
>                http://archives.postgresql.org
> 

-- 
-Achilleus