Re: ABI Compliance Checker GSoC Project

From: Mankirat Singh <mankiratsingh1315(at)gmail(dot)com>
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>, andres(at)anarazel(dot)de
Cc: "David E(dot) Wheeler" <david(at)justatheory(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: ABI Compliance Checker GSoC Project
Date: 2025-07-12 13:03:09
Message-ID: CAOtk82QaCsXW2JPx648g+YxkPVAiUJa_Pq+zNP+SFGN7-T0Hjw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello Hackers,
I have been working on this project with David since last month.
I've written some blogs about the progress, the most recent one is here [1]
Here's the draft pull request for anyone interested in reviewing the code: [2]

On Wed, 9 Jul 2025 at 17:57, Álvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
> Were you able to make any progress on this?
For now, my goal was to make it work without handling false positives.
I plan to address those later, but I want to understand them now so I
can move faster when the time comes.

On Wed, 9 Jul 2025 at 21:03, Andres Freund <andres(at)anarazel(dot)de> wrote:
> This is beneficial for extensions because on ELF platforms, all exported
> platforms in shared libraries can be intercepted by the main executable,
> requiring all function calls between exported functions within an extension to
> go through the GOT, slowing things down noticeably.
>
>
> > Anyway, it doesn't look to me like adding -fvisibility=hidden to CFLAGS is a
> > viable solution, though maybe it is possible to get the build to play nice.
>
> It'd be nice if we could get there, but it'd require annotating *all*
> intentionally exported functions in the backend with PGDLLIMPORT (rather than
> just doing that for variables). Then we could make some symbols
> *intentionally* not exported, which can improve the code generation (allowing
> more compiler and linker optimizations).
Thanks for the explanation, Andres!
Had the same questions as David asked.

Regards,
Mankirat

[1] - https://blog.mankiratsingh.com/posts/worklog-3to11-abi-complicance-reporting/
[2] - https://github.com/PGBuildFarm/client-code/pull/38

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Фуканчик Сергей 2025-07-12 13:36:21 [PATCH] replace float8 with int in date2isoweek() and date2isoyear()
Previous Message Tatsuo Ishii 2025-07-12 08:09:15 Inconsistent behavior in mixing simple/extended query protocol