From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: Fujii Masao <masao.fujii@gmail.com>
Cc: TAKATSUKA Haruka <harukat@sraoss.co.jp>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #11335: an invalid prepare statement causes crash at log_statement = 'mod' or 'ddl'.
Date: Wed, 12 Nov 2014 16:04:13 -0500
Message-ID: <29028.1415826253@sss.pgh.pa.us> (raw)
In-Reply-To: <5427.1410991002@sss.pgh.pa.us>
References: <20140902111653.2936.35702@wrigleys.postgresql.org>
<CAHGQGwF8xRx0uNAXF3M=9SMJnLzNatBzbC8byXLNpgtTqRfu0Q@mail.gmail.com>
<CAHGQGwHhiBgw8zqi5S2CVwqNcZ_L4sMBivutbhwPufQEqvbpJA@mail.gmail.com>
<5731.1410035128@sss.pgh.pa.us>
<20140906203410.GK26947@awork2.anarazel.de>
<CAB7nPqTjGHmKX-BLw2n02YKuAG+umo3mjvO644JN-Ha3crLX2Q@mail.gmail.com>
<5427.1410991002@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
I wrote:
> Michael Paquier <michael.paquier@gmail.com> writes:
>> On Sat, Sep 6, 2014 at 1:34 PM, Andres Freund <andres@2ndquadrant.com> wrote:
>>> On 2014-09-06 16:25:28 -0400, Tom Lane wrote:
>>>> I don't think this fix is either appropriate or adequate.
>>> Agreed (and commented offlist. Which probably was a mistake).
>> This has not been reverted yet. Wouldn't it be better to do that asap?
> Probably not until someone codes a better fix. I have it on my plate
> to look into a better fix, but I've been horribly busy lately.
I've applied a fix that takes the approach of explicitly testing for
null plancache->raw_parse_tree whereever necessary. There were at least
two places where there was no such test before; I think they are probably
unreachable with an empty query (because no replanning could ever be
needed) but it seems best to be consistent.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, andres@2ndquadrant.com, masao.fujii@gmail.com, harukat@sraoss.co.jp
Subject: Re: BUG #11335: an invalid prepare statement causes crash at log_statement = 'mod' or 'ddl'.
In-Reply-To: <29028.1415826253@sss.pgh.pa.us>
References: <20140902111653.2936.35702@wrigleys.postgresql.org> <CAHGQGwF8xRx0uNAXF3M=9SMJnLzNatBzbC8byXLNpgtTqRfu0Q@mail.gmail.com> <CAHGQGwHhiBgw8zqi5S2CVwqNcZ_L4sMBivutbhwPufQEqvbpJA@mail.gmail.com> <5731.1410035128@sss.pgh.pa.us> <20140906203410.GK26947@awork2.anarazel.de> <CAB7nPqTjGHmKX-BLw2n02YKuAG+umo3mjvO644JN-Ha3crLX2Q@mail.gmail.com> <5427.1410991002@sss.pgh.pa.us> <29028.1415826253@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