Received: from bjke.com (firewall-user@ganymede.bjke.com [144.210.8.38]) by hub.org (8.9.1/8.9.1) with ESMTP id SAA28074 for ; Mon, 4 Jan 1999 18:45:29 -0500 (EST) (envelope-from djackson@cpsgroup.com) Received: by bjke.com; id RAA13693; Mon, 4 Jan 1999 17:45:27 -0600 (CST) Received: from cpsmail.cpsgroup.com(144.210.12.11) by gauntlet.bjke.com via smap (4.1) id xmaa13489; Mon, 4 Jan 99 17:45:11 -0600 Received: by cpsmail with Internet Mail Service (5.0.1458.49) id ; Mon, 4 Jan 1999 17:48:00 -0600 Message-ID: From: "Jackson, DeJuan" To: leif@danmos.dk, pgsql-interfaces@postgreSQL.org Subject: RE: [INTERFACES] How to implement referential facilities in Postg reSQL Date: Mon, 4 Jan 1999 17:47:58 -0600 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1458.49) Content-Type: text/plain Check the contrib/spi/refint.* in the distribution. To answer your question you use triggers to implement it. In Postgres v6.4 and higher you could also use rules to implement referential integrity (for examples see src/test/regress/sql/rules.sql). -DEJ > -----Original Message----- > Hi everybody, > > Happy New Year to you all. > > > We have a rather large M$ Access application for time and > attendance > and job time registration. It has been implemented in M$ > Access using a > M$ Access database running on a M$ 'operating system'. > > One of our issues is to use the PostgreSQL in stead > of/underneath the > M$ Access database application, which is the existing > application running > well on M$ Access with not so large amounts of data. We of course need > to run this on a Linux box. The application makes extensive > use of some > Access 'referential features'. > > So my question is: > > What is the equivalent of > > 'Enforce Referential Integrity', > 'Cascade Update Related Fields', and > 'Cascade Update Related Records' in > > SQL/PostgreSQL terms. In other words, how do I get these > facilities into > my PostgreSQL database? I need to be able to have the M$ > Access application > to link directly to the PostgreSQL tables using ODBC, which I > have managed > to copy directly using Access, but with no Primary/Foreign > keys what so ever. > > > Thanks for any sugestions, > > Leif > >