Received: from poptop.llnl.gov (poptop.llnl.gov [128.115.18.65]) by hub.org (8.9.3/8.9.3) with ESMTP id QAA37429 for ; Thu, 8 Jul 1999 16:36:01 -0400 (EDT) (envelope-from sbradley@llnl.gov) Received: from oglala (oglala.llnl.gov [128.115.223.27]) by poptop.llnl.gov (8.8.8/LLNL-3.0.2/pop.llnl.gov-5.1) with SMTP id NAA10002; Thu, 8 Jul 1999 13:35:44 -0700 (PDT) Message-Id: <3.0.5.32.19990708133826.0092d6e0@poptop.llnl.gov> X-Sender: e097106@poptop.llnl.gov X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Thu, 08 Jul 1999 13:38:26 -0700 To: "Gilson Costa" From: Steven Bradley Subject: Re: [SQL] Referential Integrity Cc: pgsql-sql@postgreSQL.org In-Reply-To: <000001bec97f$31ab6be0$5f86f6c8@mac> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" PostgreSQL does not implement declarative referential integrity. It lets you specify foreign key constraints in table definitions, but does nothing with them. As such, you have to resort to writing triggers to implement the traditional RI concerns (e.g.: mandatory parent, cascade delete, etc...). At 03:41 PM 7/8/99 -0300, you wrote: >I am a novice in PostgreSQL. >How can I impose referential integrity to my tables? > > > > Steven Bradley Lawrence Livermore National Laboratory PO Box 808 Livermore, California 94550 (925) 423-2101 sbradley@llnl.gov