Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XUNFn-00034n-0c for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Sep 2014 21:59:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XUNFm-0005EN-GW for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Sep 2014 21:59:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUNFl-0005EH-R2 for pgsql-bugs@postgresql.org; Wed, 17 Sep 2014 21:59:09 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUNFi-0005Oe-5K for pgsql-bugs@postgresql.org; Wed, 17 Sep 2014 21:59:08 +0000 Received: from anarazel.de (p5DDC6F53.dip0.t-ipconnect.de [93.220.111.83]) by mrelayeu.kundenserver.de (node=mreue004) with ESMTP (Nemesis) id 0MKdmN-1XVCKb2xwV-0023ft; Wed, 17 Sep 2014 23:58:58 +0200 Received: by anarazel.de (Postfix, from userid 1000) id C087C100969; Wed, 17 Sep 2014 23:58:57 +0200 (CEST) Date: Wed, 17 Sep 2014 23:58:57 +0200 From: Andres Freund To: Tom Lane Cc: Michael Paquier , Fujii Masao , TAKATSUKA Haruka , pgsql-bugs Subject: Re: BUG #11335: an invalid prepare statement causes crash at log_statement = 'mod' or 'ddl'. Message-ID: <20140917215857.GA26236@awork2.anarazel.de> References: <20140902111653.2936.35702@wrigleys.postgresql.org> <5731.1410035128@sss.pgh.pa.us> <20140906203410.GK26947@awork2.anarazel.de> <5427.1410991002@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5427.1410991002@sss.pgh.pa.us> X-Provags-ID: V02:K0:XtOsliOP3TkKNcZtbwlIIVnX6aRyvaeP2H2QIDBtFjG QLVCmSW4o6exnLzXDkpzjN7/qRWmPHOgu8RtInaVtUiHEIVi96 ft6h0vsZPYGdSTFaBgrsmNyrP9r0q8hyFzG8rlkfZ4WeuJ6Qn/ eup9U2pfyaQ7BTuH+y0xBoYwhh0mJWuuqakW1ZIyiiwGRUYEcA 99LKWrBxG5xfxijA8tDrEyS+OJqkKK5T2FwUUUoUWnuc6neY4j IKIeq2t3lyre3exxmJ9XPbr9pJtrMpmNg62zzRfudQyAxGkIqt C2ZdiaQ5zvhGbeYhVAMkrgd5iRLKSV4Vf4AXvWtX/Sf/6kc/bQ P2s/oGjwuqwU/6U6oTsuF/IYgSRb7CE5yEEd97h1p X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -2.1 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2014-09-17 14:56:42 -0700, Tom Lane wrote: > Michael Paquier writes: > > On Sat, Sep 6, 2014 at 1:34 PM, Andres Freund wrote: > > Looking at exec_parse_message, empty input string is allowed for a > > cached plan (16503e6f). This solution would break client > > applications/drivers using the extending query protocol and relying on > > this behavior. This EmptyStmt approach sounds like a good option. > > 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? We imo should at least change it in master. Unless I miss something there's really no reason for allowing it. 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