Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 37AF2475E50 for ; Wed, 5 Jun 2002 03:36:45 -0400 (EDT) Received: from anantinfo.anantinfotech.com (unknown [61.1.73.17]) by postgresql.org (Postfix) with ESMTP id F2EE3475A39 for ; Wed, 5 Jun 2002 03:34:37 -0400 (EDT) Received: from sheetal (sheetal.anantinfotech.com [192.168.100.34]) by anantinfo.anantinfotech.com (8.11.2/8.11.2) with SMTP id g557h1r03898 for ; Wed, 5 Jun 2002 13:13:03 +0530 Message-ID: <001801c20ccc$80b989e0$2264a8c0@sheetal> From: "sheetal" To: Subject: Help... Date: Wed, 5 Jun 2002 13:06:36 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0015_01C20C91.D28DE120" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200206/134 X-Sequence-Number: 25286 This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C20C91.D28DE120 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is there any table in postgres ,for eg pg_constraints, where in i can get t= he references for all the fields of a particular table in the data base?=20 Consider this.. I have=20 item master -- Item_code, Item Name supplier master -- supplier_code, supplier_name supplier_item_catalogue -- supplier_code references supplier master= , item_code references item master Now , if i select table supplier_item_catalogue for any reason from pg_tabl= es, i should know that related tables item_master and supplier_master are a= lso to be selected. How can i do this using php /postgres? =20=20=20=20=20=20=20=20 ------=_NextPart_000_0015_01C20C91.D28DE120 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Is there any table in postgres ,for eg=20 pg_constraints, where in i can get the references for all the fields of a= =20 particular table in the data base?
Consider this..
    I have
        item= master=20 -- Item_code, Item Name
       = supplier=20 master -- supplier_code, supplier_name
       = =20 supplier_item_catalogue -- supplier_code references supplier master, item_c= ode=20 references item master
 
Now , if i select table supplier_item_cata= logue for=20 any reason from pg_tables, i should know that related tables item_master an= d=20 supplier_master are also to be selected.
 
How can i do this using php /postgres?
 
       =20
------=_NextPart_000_0015_01C20C91.D28DE120--