pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Robert Haas <rhaas@postgresql.org>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Allow a partitioned table to have a default partition.
Date: Fri, 08 Sep 2017 18:50:26 -0400
Message-ID: <22870.1504911026@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEepm=0bsTn90E8iGQ1FKOnyx=SsPw-nsOH6G_B4DthjnF0i7A@mail.gmail.com>
References: <E1dqQvU-00037v-9G@gemulon.postgresql.org>
	<20382.1504907397@sss.pgh.pa.us>
	<CAEepm=0-AYqx-3+csErib2zTDtQq7s7J2K6a758xRRaeLCkP3g@mail.gmail.com>
	<CAEepm=0bsTn90E8iGQ1FKOnyx=SsPw-nsOH6G_B4DthjnF0i7A@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Thomas Munro <thomas.munro@enterprisedb.com> writes:
> On Sat, Sep 9, 2017 at 10:23 AM, Thomas Munro
> <thomas.munro@enterprisedb.com> 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



view thread (6+ messages)  latest in thread

Message-ID: <22870.1504911026@sss.pgh.pa.us>
Permalink:  ../22870.1504911026@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22870.1504911026@sss.pgh.pa.us

 · 

reply

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@enterprisedb.com, rhaas@postgresql.org
  Subject: Re: pgsql: Allow a partitioned table to have a default partition.
  In-Reply-To: <22870.1504911026@sss.pgh.pa.us>
  References: <E1dqQvU-00037v-9G@gemulon.postgresql.org> <20382.1504907397@sss.pgh.pa.us> <CAEepm=0-AYqx-3+csErib2zTDtQq7s7J2K6a758xRRaeLCkP3g@mail.gmail.com> <CAEepm=0bsTn90E8iGQ1FKOnyx=SsPw-nsOH6G_B4DthjnF0i7A@mail.gmail.com> <22870.1504911026@sss.pgh.pa.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