pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Matthias <nitrogenycs@googlemail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Temporal foreign keys
Date: Thu, 15 Mar 2012 14:53:07 -0700
Message-ID: <1331848387.26127.33.camel@sussancws0025> (raw)
In-Reply-To: <CACECd8i4P4iNqUii4Lqsw0qSthawhh3gE=AtmBDSJN25qrx15g@mail.gmail.com>
References: <CACECd8i4P4iNqUii4Lqsw0qSthawhh3gE=AtmBDSJN25qrx15g@mail.gmail.com>

On Fri, 2012-02-03 at 07:58 +0100, Matthias wrote:
> Hey,
> 
> how can I implement temporal foreign keys with postgresql? Is writing
> triggers the only way to enforce temporal referential integrity
> currently?

Yes, currently that's the only way. Look at CREATE CONSTRAINT TRIGGER.

Regards,
	Jeff Davis




view thread (6+ messages)  latest in thread

Message-ID: <1331848387.26127.33.camel@sussancws0025>
Permalink:  ../1331848387.26127.33.camel@sussancws0025/
Also on:    postgresql.org/message-id/1331848387.26127.33.camel@sussancws0025

 · 

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-general@postgresql.org
  Cc: pgsql@j-davis.com, nitrogenycs@googlemail.com
  Subject: Re: Temporal foreign keys
  In-Reply-To: <1331848387.26127.33.camel@sussancws0025>
  References: <CACECd8i4P4iNqUii4Lqsw0qSthawhh3gE=AtmBDSJN25qrx15g@mail.gmail.com> <1331848387.26127.33.camel@sussancws0025>

* 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