Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XUPJK-0008Pq-MQ for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Sep 2014 00:10:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XUPJK-0003CW-2a for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Sep 2014 00:10:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUPJJ-0003CP-2O for pgsql-bugs@postgresql.org; Thu, 18 Sep 2014 00:10:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUPJG-0007wf-3Q for pgsql-bugs@postgresql.org; Thu, 18 Sep 2014 00:10:55 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s8I0Ak8S012547; Wed, 17 Sep 2014 20:10:47 -0400 From: Tom Lane To: Andres Freund 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'. In-reply-to: <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> <20140917215857.GA26236@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 17 Sep 2014 23:58:57 +0200" Date: Wed, 17 Sep 2014 17:10:52 -0700 Message-ID: <5537.1410999052@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 Andres Freund 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. 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