Re: Error in creating the backend query - Mailing list pgsql-admin

From Tom Lane
Subject Re: Error in creating the backend query
Date
Msg-id 15100.1248903036@sss.pgh.pa.us
Whole thread Raw
In response to Re: Error in creating the backend query  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Error in creating the backend query  ("Benjamin Krajmalnik" <kraj@illumen.com>)
List pgsql-admin
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Benjamin Krajmalnik wrote:
>> Please note the "lasteventsource is null" instead of "lasteventsource =
>> null" which is being generated when the value of x_eventsource is null.

> Do you have transform_null_equals set?

Even if he did, that wouldn't affect the source form of the query.
Insertion of explicit constant values and casts like that isn't
something plpgsql would do on its own either.  My bet is that this has
got nothing to do with plpgsql, and in fact the query was generated
client-side using some rather ill-designed parameter substitution code.

If this can actually be reproduced in bare plpgsql, I would like to see
a complete test case.

            regards, tom lane

pgsql-admin by date:

Previous
From: "Benjamin Krajmalnik"
Date:
Subject: Re: Error in creating the backend query
Next
From: Alvaro Herrera
Date:
Subject: Re: Error in creating the backend query