Re: ORDER BY logic in PostgreSQL source code - Mailing list pgsql-hackers

From Rafia Sabih
Subject Re: ORDER BY logic in PostgreSQL source code
Date
Msg-id CA+FpmFdYk7c_N1oJQ1wbbbgxYMKyUfcbDgs=iMxfV9jkmdfuoQ@mail.gmail.com
Whole thread Raw
In response to ORDER BY logic in PostgreSQL source code  (Sajti Zsolt Zoltán <qnwbq9@inf.elte.hu>)
List pgsql-hackers
On Wed, 10 Nov 2021 at 11:57, Sajti Zsolt Zoltán <qnwbq9@inf.elte.hu> wrote:
>
> I'm currently working on a GiST extension for PostgreSQL and I ran into strange ORDER BY results during my queries.
>
> Because I can't find the problem in my source code, I want to investigate the issue by looking at the PostgreSQL
source,
> maybe inserting extra log messages.
> While trying to do this, I came to the conclusion that I need developer help, because I can't find the part of the
sourcecode 
> where the ORDER BY logic is implemented.
>
> Could you please help, by telling me which files should I take a look at?
>
> Thanks in advance!

I think you can start by looking into the function grouping_planner
and explore further by going through the route of it.

--
Regards,
Rafia Sabih



pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Re: wait event and archive_command
Next
From: Alvaro Herrera
Date:
Subject: Re: prevent immature WAL streaming