From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.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: Mon, 13 Oct 2014 16:14:59 -0400
Message-ID: <20141013201459.GJ21267@momjian.us> (raw)
In-Reply-To: <5537.1410999052@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>
<20140917215857.GA26236@awork2.anarazel.de>
<5537.1410999052@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Wed, Sep 17, 2014 at 05:10:52PM -0700, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> writes:
> > On 2014-09-17 14:56:42 -0700, Tom Lane wrote:
> >> Yeah, on second thought I have doubts about the throw-error approach too.
> >> We've allowed this historically for a very long time, so I'm afraid we'd
> >> get a lot of pushback if we change the external behavior now.
>
> > I have a hard time believing this. Are we really believing that there's
> > a significant number of clients preparing whitespace?
>
> I don't know about "significant number", but the case is specifically
> called out as legal in the FE/BE protocol spec, for example here:
>
> Therefore, an Execute phase is always terminated by the appearance of
> exactly one of these messages: CommandComplete, EmptyQueryResponse
> (if the portal was created from an empty query string), ErrorResponse,
> or PortalSuspended.
>
> If we change it, that's a protocol break, and I don't think that being a
> tad cleaner is sufficient argument for that.
Where are we on this?
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
--
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: bruce@momjian.us, tgl@sss.pgh.pa.us, andres@2ndquadrant.com, michael.paquier@gmail.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: <20141013201459.GJ21267@momjian.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> <20140917215857.GA26236@awork2.anarazel.de> <5537.1410999052@sss.pgh.pa.us> <20141013201459.GJ21267@momjian.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