Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xof5Z-0004ET-3O for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Nov 2014 21:04:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xof5Y-0006Jl-IZ for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Nov 2014 21:04:28 +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 1Xof5X-0006Hb-0R for pgsql-bugs@postgresql.org; Wed, 12 Nov 2014 21:04:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xof5T-00085s-0n for pgsql-bugs@postgresql.org; Wed, 12 Nov 2014 21:04:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sACL4DoF029029; Wed, 12 Nov 2014 16:04:13 -0500 From: Tom Lane To: Michael Paquier cc: Andres Freund , 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: <5427.1410991002@sss.pgh.pa.us> References: <20140902111653.2936.35702@wrigleys.postgresql.org> <5731.1410035128@sss.pgh.pa.us> <20140906203410.GK26947@awork2.anarazel.de> <5427.1410991002@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 17 Sep 2014 14:56:42 -0700" Date: Wed, 12 Nov 2014 16:04:13 -0500 Message-ID: <29028.1415826253@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) 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 I wrote: > Michael Paquier writes: >> On Sat, Sep 6, 2014 at 1:34 PM, Andres Freund 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