Re: Minor ON CONFLICT related fixes - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Minor ON CONFLICT related fixes
Date
Msg-id 20150512023406.GW12950@alap3.anarazel.de
Whole thread Raw
In response to Re: Minor ON CONFLICT related fixes  (Peter Geoghegan <pg@heroku.com>)
Responses Re: Minor ON CONFLICT related fixes  (Peter Geoghegan <pg@heroku.com>)
List pgsql-hackers
On 2015-05-11 19:33:02 -0700, Peter Geoghegan wrote:
> On Mon, May 11, 2015 at 7:22 PM, Peter Geoghegan <pg@heroku.com> wrote:
> > You just get an error within the
> > optimizer following rewriting of a query involving the application of
> > a rule that specifies an ON CONFLICT DO UPDATE alternative/DO INSTEAD
> > action. I found it would say: "variable not found in subplan target
> > lists".
> 
> BTW, that error was only raised when the EXCLUDED.* pseudo-alias was
> actually used, which is why our previous testing missed it.

You should try to understand why it's failing. Just prohibiting the
rules, without understanding what's actually going on, could very well
hide a real bug.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Minor ON CONFLICT related fixes
Next
From: Michael Paquier
Date:
Subject: Re: LOCK TABLE Permissions