From: | Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> |
---|---|
To: | "rcolmegna(at)tiscali(dot)it" <rcolmegna(at)tiscali(dot)it> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: schema inspection |
Date: | 2006-03-16 16:45:20 |
Message-ID: | Pine.LNX.4.44.0603161844490.24076-100000@matrix.gatewaynet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
O rcolmegna(at)tiscali(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | rcolmegna@tiscali.it | 2006-03-16 16:58:28 | R: R: Re: schema inspection |
Previous Message | Daniel Caune | 2006-03-16 15:49:10 | Re: help with function |