pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
schema inspection 3+ messages / 3 participants [nested] [flat]
* schema inspection @ 2006-03-16 14:55 rcolmegna@tiscali.it <rcolmegna@tiscali.it> 2006-03-16 16:45 ` Re: schema inspection Achilleus Mantzios <achill@matrix.gatewaynet.com> 0 siblings, 1 reply; 3+ messages in thread From: rcolmegna@tiscali.it @ 2006-03-16 14:55 UTC (permalink / raw) To: pgsql-sql 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"? 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.tiscal... ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: schema inspection 2006-03-16 14:55 schema inspection rcolmegna@tiscali.it <rcolmegna@tiscali.it> @ 2006-03-16 16:45 ` Achilleus Mantzios <achill@matrix.gatewaynet.com> 0 siblings, 0 replies; 3+ messages in thread From: Achilleus Mantzios @ 2006-03-16 16:45 UTC (permalink / raw) To: rcolmegna@tiscali.it <rcolmegna@tiscali.it>; +Cc: 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.tiscal... > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > -- -Achilleus ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: schema inspection @ 2006-03-16 15:43 Michael James <Michael.James@icrossing.com> 0 siblings, 0 replies; 3+ messages in thread From: Michael James @ 2006-03-16 15:43 UTC (permalink / raw) To: Achilleus Mantzios <achill@matrix.gatewaynet.com>; rcolmegna@tiscali.it; +Cc: pgsql-sql Pgadmin is a good GUI interface if you want that same info, but pg_catalog is a better tool -----Original Message----- From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org] On Behalf Of Achilleus Mantzios Sent: Thursday, March 16, 2006 9:45 AM To: rcolmegna@tiscali.it Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] schema inspection 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.tiscal... > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > -- -Achilleus ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match iCrossing Privileged and Confidential Information This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information of iCrossing. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-03-16 16:45 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2006-03-16 14:55 schema inspection rcolmegna@tiscali.it <rcolmegna@tiscali.it> 2006-03-16 16:45 ` Achilleus Mantzios <achill@matrix.gatewaynet.com> 2006-03-16 15:43 Re: schema inspection Michael James <Michael.James@icrossing.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox