Getting "ERROR: did not find all requested child rels inappend_rel_list" when enable_partition_pruning is on - Mailing list pgsql-hackers

From Rajkumar Raghuwanshi
Subject Getting "ERROR: did not find all requested child rels inappend_rel_list" when enable_partition_pruning is on
Date
Msg-id CAKcux6mTNvUKn2GbJcbf5XW3JqZ90tUwAYwVxsOOEKWAqskP2A@mail.gmail.com
Whole thread Raw
Responses Re: Getting "ERROR: did not find all requested child rels inappend_rel_list" when enable_partition_pruning is on
List pgsql-hackers
Hi,

I am getting "ERROR:  did not find all requested child rels in append_rel_list" when enable_partition_pruning is on for below test case.

CREATE TABLE test(c1 int, c2 int) PARTITION BY RANGE(c1);
CREATE TABLE test_p1 PARTITION OF test FOR VALUES FROM (minvalue) TO (0);
CREATE TABLE test_p2 PARTITION OF test FOR VALUES FROM  (0) TO (maxvalue);
select * from (select * from test a union all select *  from test b) ss where (c1 >= c2);

postgres=# set enable_partition_pruning to off;
SET
postgres=# select * from (select * from test a union all select *  from test b) ss where (c1 >= c2);
 c1 | c2
----+----
(0 rows)

postgres=#
postgres=# set enable_partition_pruning to on;
SET
postgres=# select * from (select * from test a union all select *  from test b) ss where (c1 >= c2);
ERROR:  did not find all requested child rels in append_rel_list


Thanks & Regards,
Rajkumar Raghuwanshi
QMG, EnterpriseDB Corporation

pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Memory leaks in BufFileOpenShared()
Next
From: Konstantin Knizhnik
Date:
Subject: Re: WAL prefetch