Re: [HACKERS] Runtime Partition Pruning
Beena Emerson <memissemerson@gmail.com>
From: Beena Emerson <memissemerson@gmail.com>
To: Rajkumar Raghuwanshi <rajkumar.raghuwanshi@enterprisedb.com>
Cc: amul sul <sulamul@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>,
Dilip Kumar <dilipbalaut@gmail.com>
Date: 2017-11-15T06:49:42Z
Lists: pgsql-hackers
Hello Rajkumar, On Tue, Nov 14, 2017 at 2:22 PM, Rajkumar Raghuwanshi <rajkumar.raghuwanshi@enterprisedb.com> wrote: > On Tue, Nov 14, 2017 at 11:46 AM, Beena Emerson <memissemerson@gmail.com> > wrote: >> >> PFA the updated patches. > > > Hi, > > I have started testing this along with fast pruning. It is crashing for sql > with subqueries. > one to test case is given below. > > CREATE TABLE prun_test_part (empno int, sal int, deptno int) PARTITION BY > RANGE(sal); > CREATE TABLE prun_test_part_p1 PARTITION OF prun_test_part FOR VALUES FROM > (0) TO (100); > CREATE TABLE prun_test_part_p2 PARTITION OF prun_test_part FOR VALUES FROM > (100) TO (200); > CREATE TABLE prun_test_part_p3 PARTITION OF prun_test_part FOR VALUES FROM > (200) TO (300); > CREATE TABLE prun_test_part_p4 PARTITION OF prun_test_part FOR VALUES FROM > (300) TO (400); > > INSERT INTO prun_test_part VALUES (10,90,10); > INSERT INTO prun_test_part VALUES (11,100,10); > INSERT INTO prun_test_part VALUES (20,110,20); > INSERT INTO prun_test_part VALUES (21,200,20); > INSERT INTO prun_test_part VALUES (30,210,30); > INSERT INTO prun_test_part VALUES (31,300,30); > INSERT INTO prun_test_part VALUES (50,310,20); > > explain (costs off) > SELECT * FROM prun_test_part WHERE sal < (SELECT sal FROM prun_test_part > WHERE sal = 50); > 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. > Thanks for your review. I am looking into it. -- 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