pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <myon@debian.org>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Fix run-time partition pruning for appends with multiple source
Date: Wed, 8 Aug 2018 12:30:55 +0200
Message-ID: <20180808103055.GC3999@msg.df7cb.de> (raw)
In-Reply-To: <E1fl0m0-0005T3-DO@gemulon.postgresql.org>
References: <E1fl0m0-0005T3-DO@gemulon.postgresql.org>

Re: Tom Lane 2018-08-02 <E1fl0m0-0005T3-DO@gemulon.postgresql.org>
> Fix run-time partition pruning for appends with multiple source rels.
> 
> The previous coding here supposed that if run-time partitioning applied to
> a particular Append/MergeAppend plan, then all child plans of that node
> must be members of a single partitioning hierarchy.  This is totally wrong,
> since an Append could be formed from a UNION ALL: we could have multiple
> hierarchies sharing the same Append, or child plans that aren't part of any
> hierarchy.
> 
> To fix, restructure the related plan-time and execution-time data
> structures so that we can have a separate list or array for each
> partitioning hierarchy.  Also track subplans that are not part of any
> hierarchy, and make sure they don't get pruned.
> 
> Per reports from Phil Florent and others.  Back-patch to v11, since
> the bug originated there.

Since this commit added a new node type, all following node types got
renumbered. This means all extension modules using the information
compiled against 11beta2 need to be recompiled against 11beta3.

For apt.postgresql.org, the list of affected modules (so far, haven't
yet checked all) is pgsql-ogr-fdw, plr, wal2json.

I believe this should be mentioned in the beta3 release notes.

Christoph

(Thanks to Andrew Gierth for helping me pinpoint the issue.)




view thread (4+ messages)  latest in thread

Message-ID: <20180808103055.GC3999@msg.df7cb.de>
Permalink:  ../20180808103055.GC3999@msg.df7cb.de/
Also on:    postgresql.org/message-id/20180808103055.GC3999@msg.df7cb.de

 · 

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: myon@debian.org, pgsql-hackers@postgresql.org
  Subject: Re: pgsql: Fix run-time partition pruning for appends with multiple source
  In-Reply-To: <20180808103055.GC3999@msg.df7cb.de>
  References: <E1fl0m0-0005T3-DO@gemulon.postgresql.org> <20180808103055.GC3999@msg.df7cb.de>

* 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