Skip site navigation (1) Skip section navigation (2)

Re: Rules with Conditions: Still Doesn't Work (Bug Rpt)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Joel Burton" <jburton(at)scw(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org, pgsql-docs(at)postgresql(dot)org
Subject: Re: Rules with Conditions: Still Doesn't Work (Bug Rpt)
Date: 2000-12-05 19:21:08
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-docs
"Joel Burton" <jburton(at)scw(dot)org> writes:
> Tom Lane pointed out that, given the current handling of 
> conditional rules, this should be one rule, with two 
> actions.
> For, this either fails to work, or in some circumstances,
> or in some circumstances, crashes the backend.

It turns out that all of these failures come from the same place,
which is that I had broken the handling of INSERT ... SELECT actions
inside rules.

I have committed a patch that appears to fix the problem.
I think that Marc has already tagged beta1, however, so the patch
will not be in the beta1 tarball due to appear Real Soon Now.
You can pull current sources from the CVS server, or grab a nightly
snapshot tarball after tonight.

Thanks for the detailed, easy-to-reproduce bug example!  These sorts of
reports are by far the nicest from a developer's point of view ;-)

			regards, tom lane

In response to


pgsql-docs by date

Next:From: Joel BurtonDate: 2000-12-05 20:26:37
Subject: Re: Rules with Conditions: Still Doesn't Work (Bug Rpt)
Previous:From: Luis SousaDate: 2000-12-05 15:46:37
Subject: Reference Manual

pgsql-bugs by date

Next:From: Tom LaneDate: 2000-12-05 20:17:35
Subject: Re: bug: UNION
Previous:From: Nabil SayeghDate: 2000-12-05 18:11:42
Subject: bug: UNION

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group