Home > Archive > PostgreSQL SQL > March 2006 > R: R: Re: schema inspection









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author R: R: Re: schema inspection
rcolmegna@tiscali.it

2006-03-16, 11:25 am

> 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/m...&z=webmail&t=14

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Achilleus Mantzios

2006-03-17, 3:27 am

O rcolmegna@tiscali.it Ýãñáøå óôéò Mar 16, 2006 :

>
> 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/m...&z=webmail&t=14
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>


--
-Achilleus


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com