pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Constraint problem
Date: Fri, 17 May 2002 11:42:43 -0700 (PDT)
Message-ID: <20020517114156.Q20428-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <web-1462528@davinci.ethosmedia.com>

On Thu, 16 May 2002, Josh Berkus wrote:

> Stephan,
>
> > AFAIK we don't actually have statement triggers right now, anyway,
> > but...
> > Actually, I guess an after trigger that just checked the new values
> > would
> > work as well, right?  See if there exists more than one row with the
> > new
> > key value.  The after trigger should fire after all the changes are
> > done
> > and in the worst case you could use constraint triggers and
> > deferment.
> > The hard part about this really is making it work with concurrent
> > modifications, and if you're willing to forgo that, it shouldn't be
> > too
> > bad.
>
> Thanks.  I'll give your solution a try and see what the performance hit
> is.
>
> Is the Unique Constraint issue on the To-Do list?

I'm not sure.  I know it's been mentioned in the past, so probably (too
lazy to look right now).




view thread (13+ messages)

Message-ID: <20020517114156.Q20428-100000@megazone23.bigpanda.com>
Permalink:  ../20020517114156.Q20428-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20020517114156.Q20428-100000@megazone23.bigpanda.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, josh@agliodbs.com
  Subject: Re: Constraint problem
  In-Reply-To: <20020517114156.Q20428-100000@megazone23.bigpanda.com>

* 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