Re: allow benign typedef redefinitions (C11)

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter(at)eisentraut(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Subject: Re: allow benign typedef redefinitions (C11)
Date: 2025-09-20 13:13:24
Message-ID: 202509201308.2skq4k5wkzgu@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2025-Sep-19, Tom Lane wrote:

> Sooner or later we need to work out a subsystem hierarchy that
> can define which headers should be allowed to include which
> other ones. I have no clear ideas about what that should look
> like, but I think the need for it gets ever more urgent.

I agree, we should do that. In the meantime, it would help if people
were a tiny bit more careful with what headers they add to other
headers.

Here's a proposed fix.

--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
<Schwern> It does it in a really, really complicated way
<crab> why does it need to be complicated?
<Schwern> Because it's MakeMaker.

Attachment Content-Type Size
0001-Don-t-include-execnodes.h-in-replication-conflict.h.patch text/x-diff 3.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2025-09-20 15:20:48 Re: AIX support
Previous Message Rintaro Ikeda 2025-09-20 12:58:04 Re: Suggestion to add --continue-client-on-abort option to pgbench