pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ray Madigan <ray@madigans.org>
Cc: Pgsql-Sql <pgsql-sql@postgresql.org>
Subject: Re: Rules with sequence columns
Date: Wed, 28 Mar 2007 12:17:05 -0400
Message-ID: <26419.1175098625@sss.pgh.pa.us> (raw)
In-Reply-To: <460A96ED.9000001@madigans.org>
References: <460A96ED.9000001@madigans.org>

Ray Madigan <ray@madigans.org> writes:
> Does anyone have any suggestion?

Use a trigger to propagate the data to the other table.  You can't make
this work reliably with a rule, because rules are macros and hence
inherently subject to double-evaluation problems when dealing with
volatile functions.

			regards, tom lane



view thread (2+ messages)  latest in thread

Message-ID: <26419.1175098625@sss.pgh.pa.us>
Permalink:  ../26419.1175098625@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26419.1175098625@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, ray@madigans.org
  Subject: Re: Rules with sequence columns
  In-Reply-To: <26419.1175098625@sss.pgh.pa.us>

* 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