pushdown of joinquals beyond group by/distinct on

From: Arne Roland <A(dot)Roland(at)index(dot)de>
To: Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: pushdown of joinquals beyond group by/distinct on
Date: 2022-04-04 19:39:49
Message-ID: d63b6ff4c4b1470a9f112e45a1bd5d0b@index.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

can someone point out to me, why we don't consider pushdowns of the joinqual for these queries beyond the distinct on?

When the qual matches the distinct clause, it should be possible to generate both parametrized and non parametrized subplans for the same query. The same should hold true for aggregates, if the group by clause matches. Is there any specific reason we aren't doing that already?

Regards

Arne

Attachment Content-Type Size
distinct_on_lateral.sql application/sql 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nikita Malakhov 2022-04-04 20:05:16 Re: Pluggable toaster
Previous Message Andres Freund 2022-04-04 19:34:35 Re: Higher level questions around shared memory stats