Re: FailedAssertion on partprune - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: FailedAssertion on partprune
Date
Msg-id 20180730232554.jxh67zgw6ts3xr44@alvherre.pgsql
Whole thread Raw
In response to Re: FailedAssertion on partprune  (David Rowley <david.rowley@2ndquadrant.com>)
Responses Re: FailedAssertion on partprune
List pgsql-hackers
On 2018-Jul-25, David Rowley wrote:

> Thinking again about the patch I submitted upthread; I wonder if it's
> actually possible to support pruning with Jamie's query. Without
> looking at the code, I don't quite see the reason that the
> sub-partitioned table wouldn't be correctly pruned by the run-time
> pruning code.  It could just be a matter of removing the failing
> Assert(). I'll do a bit more testing and confirm.

Not looking at the code right now either, but removing that assert and
then removing the TABLESAMPLE clause, the query returns identical
results with and without pruning, so maybe you're right.  No time for
further looking now.

(SELECT 'Jaime' <> 'Jamie' COLLATE es_EC)

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused
Next
From: Thomas Munro
Date:
Subject: Re: Recovery performance of standby for multiple concurrent truncateson large tables