Re: [HACKERS] Runtime Partition Pruning
Beena Emerson <memissemerson@gmail.com>
From: Beena Emerson <memissemerson@gmail.com>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>,
Robert Haas <robertmhaas@gmail.com>, amul sul <sulamul@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>,
Dilip Kumar <dilipbalaut@gmail.com>
Date: 2017-12-21T14:02:29Z
Lists: pgsql-hackers
Hello, On Thu, Dec 21, 2017 at 6:26 PM, David Rowley <david.rowley@2ndquadrant.com> wrote: > On 21 December 2017 at 22:01, David Rowley <david.rowley@2ndquadrant.com> wrote: >> I've attached the latest version of the patch. This is based >> on Amit's v15 of faster-partition-pruning [1] which I found to cleanly >> apply to f94eec490 > > Well, that went out of date pretty quickly. Amit has now posted v16 of > the faster partition pruning patch [1] which conflicts with my changes > in my v2 patch. > > I've attached a new version of the patch to resolve these conflicts. Thank you for the patch, I applied it over Amit's v16 patches on commit 180428404. I found that make check is crashing along with the following sql you mentioned. postgres=# create table ta (a int not null) partition by list (a); CREATE TABLE postgres=# create table ta1 partition of ta for values in(1,2); CREATE TABLE postgres=# create table ta2 partition of ta for values in(3,4); CREATE TABLE postgres=# explain select * from ta where a <> 1 and a <> 2; server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Failed. This seems like having two different patches for the same feature. I will post my version of the patch which uses the struct PartitionPruneInfo from your patch and I will add the other additional features you added like optimizing the pruning rescan. I will try and post the patch tomorrow. If there is more suggestions, you can give it over that; otherwise it seems like duplicating efforts. -- Beena Emerson EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Initialize ExprStates once in run-time partition pruning
- 1957f8dabf8d 11.0 landed
-
Add bms_prev_member function
- 5c0675215e15 11.0 landed
-
Support partition pruning at execution time
- 499be013de65 11.0 landed
-
Document partprune.c a little better
- 971d7ddbe19a 11.0 landed
-
Fix crash in pg_replication_slot_advance
- 6f1d723b6359 11.0 cited
-
Add parallel-aware hash joins.
- 1804284042e6 11.0 cited
-
Fix typo.
- 487a0c1518af 11.0 cited
-
Allow --with-bonjour to work with non-macOS implementations of Bonjour.
- 9b9cb3c4534d 11.0 cited
-
Mention need for --no-inc-recursive in rsync command
- 2c74e6c1dcc5 11.0 cited