Re: ORDER BY logic in PostgreSQL source code

From: Rafia Sabih <rafia(dot)pghackers(at)gmail(dot)com>
To: Sajti Zsolt Zoltán <qnwbq9(at)inf(dot)elte(dot)hu>
Cc: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: ORDER BY logic in PostgreSQL source code
Date: 2021-11-10 11:47:46
Message-ID: CA+FpmFdYk7c_N1oJQ1wbbbgxYMKyUfcbDgs=iMxfV9jkmdfuoQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 10 Nov 2021 at 11:57, Sajti Zsolt Zoltán <qnwbq9(at)inf(dot)elte(dot)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 source code
> 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2021-11-10 12:09:03 Re: prevent immature WAL streaming
Previous Message Bharath Rupireddy 2021-11-10 11:30:20 Re: wait event and archive_command