Re: R: R: Re: schema inspection - Mailing list pgsql-sql

From Achilleus Mantzios
Subject Re: R: R: Re: schema inspection
Date
Msg-id Pine.LNX.4.44.0603171144370.27220-100000@matrix.gatewaynet.com
Whole thread Raw
In response to R: R: Re: schema inspection  ("rcolmegna@tiscali.it" <rcolmegna@tiscali.it>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: About how to use "exception when ??? then "
Next
From: Achilleus Mantzios
Date:
Subject: Re: R: Re: R: R: Re: schema inspection