Re: schema inspection

Поиск
Список
Период
Сортировка
От Achilleus Mantzios
Тема Re: schema inspection
Дата
Msg-id Pine.LNX.4.44.0603161844490.24076-100000@matrix.gatewaynet.com
обсуждение исходный текст
Ответ на schema inspection  ("rcolmegna@tiscali.it" <rcolmegna@tiscali.it>)
Список pgsql-sql
O rcolmegna@tiscali.it έγραψε στις Mar 16, 2006 :

> Hi,
> 
> supposing to have a small DB:
> 
> TABLE a (
>   id SERIAL PRIMARY KEY
> );
> 
> TABLE b (
>   id SERIAL PRIMARY KEY,
>   idA INTEGER NOT NULL REFERENCES a(id)
> );
> 
> How can I inspect pg_schema/information_schema to "detect" the 
> relation between "b" and "a" via "idB"?
> 

pg_catalog.pg_constraint is your (only?) friend.

> 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 3: Have you checked our extensive FAQ?
> 
>                http://www.postgresql.org/docs/faq
> 

-- 
-Achilleus



В списке pgsql-sql по дате отправления:

Предыдущее
От: "rcolmegna@tiscali.it"
Дата:
Сообщение: schema inspection
Следующее
От: lacou
Дата:
Сообщение: help with function