From: Richard Broersma Jr <rabroersma@yahoo.com>
To: pgsql-sql@postgresql.org, Scott <lists@mail.sael.com.au>
Subject: Re: Insert Rule, Multiple Insert, Update Problem
Date: Mon, 10 Dec 2007 20:50:02 -0800 (PST)
Message-ID: <152664.76353.qm@web31803.mail.mud.yahoo.com> (raw)
In-Reply-To: <200712111423.52950.lists@mail.sael.com.au>
--- On Mon, 12/10/07, Scott <lists@mail.sael.com.au> wrote:
> I am having trouble with an insert rule that also does an
> update. It works
> fine for a single insert but multiple inserts in a single
> statement don't
> behave as I expected.
Yup, that is the limitation of rules. They are only useful if you issue statements that will only affect one tuple in a table at a time. If you want something different, you will have to use functions or triggers.
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: rabroersma@yahoo.com, lists@mail.sael.com.au
Subject: Re: Insert Rule, Multiple Insert, Update Problem
In-Reply-To: <152664.76353.qm@web31803.mail.mud.yahoo.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