Re: R: R: Re: schema inspection

Поиск
Список
Период
Сортировка
От Achilleus Mantzios
Тема Re: R: R: Re: schema inspection
Дата
Msg-id Pine.LNX.4.44.0603171144370.27220-100000@matrix.gatewaynet.com
обсуждение исходный текст
Ответ на R: R: Re: schema inspection  ("rcolmegna@tiscali.it" <rcolmegna@tiscali.it>)
Список 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 по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: About how to use "exception when ??? then "
Следующее
От: Achilleus Mantzios
Дата:
Сообщение: Re: R: Re: R: R: Re: schema inspection