pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
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: Sat, 6 Sep 2014 22:34:10 +0200
Message-ID: <20140906203410.GK26947@awork2.anarazel.de> (raw)
In-Reply-To: <5731.1410035128@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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2014-09-06 16:25:28 -0400, Tom Lane wrote:
> Fujii Masao <masao.fujii@gmail.com> writes:
> > On Thu, Sep 4, 2014 at 3:55 AM, Fujii Masao <masao.fujii@gmail.com> wrote:
> >> Thanks for reporting the bug! This segmentation fault could reproduce
> >> even on my machine. Barring any objection, I will apply the change that
> >> you suggested.
> 
> > Done.
> 
> I don't think this fix is either appropriate or adequate.

Agreed (and commented offlist. Which probably was a mistake).

> Or maybe we should reconsider whether
> exec_parse_message should allow the case at all.  It's not unreasonable
> that Parse should require exactly one SQL statement, not just "at most
> one".

I think this is the best bet. There really doesn't seem much
justification for the current "at most one" definition. At least not one
that I could find or think of. The likelihood of leaving some places
unfixed or new breakages creeping in seems non-nil; it's not what one
would immediately expect.

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (12+ messages)  latest in thread

Message-ID: <20140906203410.GK26947@awork2.anarazel.de>
Permalink:  ../20140906203410.GK26947@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20140906203410.GK26947@awork2.anarazel.de

 · 

reply

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: andres@2ndquadrant.com, tgl@sss.pgh.pa.us, 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: <20140906203410.GK26947@awork2.anarazel.de>
  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>

* 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