Re: Declarative partitioning - another take
Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
It's allowed to specify an non-default opclass in partition by clause, but I do not see any testcase testing the same. Can you please add one. On Fri, Oct 7, 2016 at 2:50 PM, Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> wrote: > On 2016/10/07 17:33, Rajkumar Raghuwanshi wrote: >> On Thu, Oct 6, 2016 at 12:44 PM, Amit Langote wrote: >> I have applied latest patches, getting some error and crash, please check >> if you are also able to reproduce the same. >> >> Observation1 : Not able to create index on partition table. >> -------------- >> CREATE TABLE rp (c1 int, c2 int) PARTITION BY RANGE(c1); >> CREATE TABLE rp_p1 PARTITION OF rp FOR VALUES START (1) END (10); >> CREATE TABLE rp_p2 PARTITION OF rp FOR VALUES START (10) END (20); >> >> CREATE INDEX idx_rp_c1 on rp(c1); >> ERROR: cannot create index on partitioned table "rp" > > This one is a new behavior as I mentioned earlier in my previous email. > >> Observation2 : Getting cache lookup failed error for multiple column range >> partition >> -------------- >> CREATE TABLE rp1_m (c1 int, c2 int) PARTITION BY RANGE(c1, ((c1 + c2)/2)); >> >> CREATE TABLE rp1_m_p1 PARTITION OF rp1_m FOR VALUES START (1, 1) END (10, >> 10); >> ERROR: cache lookup failed for attribute 0 of relation 16429 >> >> Observation3 : Getting server crash with multiple column range partition >> -------------- >> CREATE TABLE rp2_m (c1 int, c2 int) PARTITION BY RANGE(((c2 + c1)/2), c2); >> CREATE TABLE rp2_m_p1 PARTITION OF rp2_m FOR VALUES START (1, 1) END (10, >> 10); >> 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. >> !> > > Fixed. Should have been caught when running the regression tests after I > made changes to 0001 to address some review comments (apparently there was > no test in 0003 that would've caught this, so added a new one, thanks!). > > > Attached updated patches. > > Thanks, > Amit -- Best Wishes, Ashutosh Bapat EnterpriseDB Corporation The Postgres Database Company
Commits
-
Fix typo.
- 03bf59676ea0 10.0 landed
-
Document trigger-firing behavior for inheritance/partitioning.
- e17628145ac3 10.0 landed
-
Fire per-statement triggers on partitioned tables.
- e180c8aa8caf 10.0 landed
-
Set ecxt_scantuple correctly for tuple routing.
- 132488bfee68 10.0 landed
-
Fix interaction of partitioned tables with BulkInsertState.
- b1ecb9b3fcfb 10.0 landed
-
Avoid core dump for empty prepared statement in an aborted transaction.
- ba61a04bc7fe 10.0 cited
-
Fix some problems in check_new_partition_bound().
- 8a8afe2f54c2 10.0 landed
-
Remove unnecessary arguments from partitioning functions.
- 18fc5192a631 10.0 cited
-
Fix reporting of constraint violations for table partitioning.
- f1b4c771ea74 10.0 cited
-
Fix tuple routing in cases where tuple descriptors don't match.
- 2ac3ef7a01df 10.0 cited
-
Invalid parent's relcache after CREATE TABLE .. PARTITION OF.
- 7cd0fd655d68 10.0 landed
-
Doc: improve documentation about inheritance.
- 162477a63d3c 10.0 cited