Re: Internal error XX000 with enable_partition_pruning=on, pg 11 beta1 on Debian
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>,
Tom Lane <tgl@sss.pgh.pa.us>, Phil Florent <philflorent@hotmail.com>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2018-06-19T14:28:55Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Match RelOptInfos by relids not pointer equality.
- a3deecb1c9af 11.0 landed
- 11e22e486d8d 12.0 landed
-
Fix run-time partition pruning for appends with multiple source rels.
- 1b54e91faabf 11.0 landed
- 1c2cb2744bf3 12.0 landed
On Sun, Jun 17, 2018 at 10:59 PM, David Rowley <david.rowley@2ndquadrant.com> wrote: > Thanks for looking. > > Robert, do you have any objections to the proposed patch? I don't have time to study this right now, but I think the main possible objection is around performance. If not flattening the Append is the best way to make queries run fast, then we should do it that way. If making pruning capable of coping with mixed hierarchies is going to be faster, then we should do that. If I were to speculate in the absence of data, my guess would be that failing to flatten the hierarchy is going to lead to a significant per-tuple cost, while the cost of making run-time pruning smarter is likely to be incurred once per rescan (i.e. a lot less). But that might be wrong, and it might be impractical to get this working perfectly in v11 given the time we have. But I would suggest that you performance test a query that ends up feeding lots of tuples through two Append nodes rather than one and see how much it hurts. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company