Re: Unfortunate pushing down of expressions below sort - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Unfortunate pushing down of expressions below sort
Date
Msg-id 1674012.1770339751@sss.pgh.pa.us
Whole thread Raw
In response to Re: Unfortunate pushing down of expressions below sort  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I wrote:
> Yeah.  That's a hangover from an ancient decision that sort/limit
> would always be applied at the top of the plan tree.  I'm too
> lazy to check the details right now, but I think we already relaxed
> that in some cases (or maybe it was about evaluating stuff
> before/after GROUP BY?).

Ah, right: see make_sort_input_target() and its very extensive
comment in planner.c.  I wonder why that didn't trigger in
your example.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Jeremy Schneider
Date:
Subject: Re: client_connection_check_interval default value
Next
From: Thomas Munro
Date:
Subject: Re: client_connection_check_interval default value