Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqS6e-0002Xj-In for pgsql-committers@arkaria.postgresql.org; Fri, 08 Sep 2017 22:50:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dqS6e-0003E1-0h for pgsql-committers@arkaria.postgresql.org; Fri, 08 Sep 2017 22:50:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dqS6d-0003Dj-Bo for pgsql-committers@postgresql.org; Fri, 08 Sep 2017 22:50:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dqS6W-0002Yg-DW; Fri, 08 Sep 2017 22:50:34 +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 v88MoRuT022871; Fri, 8 Sep 2017 18:50:27 -0400 From: Tom Lane To: Thomas Munro cc: Robert Haas , pgsql-committers Subject: Re: pgsql: Allow a partitioned table to have a default partition. In-reply-to: References: <20382.1504907397@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Sat, 09 Sep 2017 10:36:35 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22869.1504911026.1@sss.pgh.pa.us> Date: Fri, 08 Sep 2017 18:50:26 -0400 Message-ID: <22870.1504911026@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Thomas Munro writes: > On Sat, Sep 9, 2017 at 10:23 AM, Thomas Munro > wrote: >> map_partition_varattnos() doesn't always write to *found_whole_row, so >> it's uninitialised here in generate_partition_qual(): That was the first thing I thought of ... > Hmm, no. I take that back. ... and I looked at map_variable_attnos and decided it was fine, too. But it ain't. It's failing on empty partition expressions, and there's a short-circuit exit from map_partition_varattnos. Will fix. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers