pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jackson, DeJuan <djackson@cpsgroup.com>
To: leif@danmos.dk
To: pgsql-interfaces@postgreSQL.org
Subject: RE: [INTERFACES] How to implement referential facilities in Postg reSQL
Date: Mon, 4 Jan 1999 17:47:58 -0600
Message-ID: <F10BB1FAF801D111829B0060971D839F5B06E1@cpsmail> (raw)

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
> 
> 



view thread (3+ messages)  latest in thread

Message-ID: <F10BB1FAF801D111829B0060971D839F5B06E1@cpsmail>
Permalink:  ../F10BB1FAF801D111829B0060971D839F5B06E1@cpsmail/
Also on:    postgresql.org/message-id/F10BB1FAF801D111829B0060971D839F5B06E1@cpsmail

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-interfaces@postgresql.org
  Cc: djackson@cpsgroup.com, leif@danmos.dk
  Subject: Re: [INTERFACES] How to implement referential facilities in Postg reSQL
  In-Reply-To: <F10BB1FAF801D111829B0060971D839F5B06E1@cpsmail>
  References: <F10BB1FAF801D111829B0060971D839F5B06E1@cpsmail>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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