pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Peter Eisentraut <peter@eisentraut.org>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: Thom Brown <thom@linux.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: making EXPLAIN extensible
Date: Fri, 07 Mar 2025 11:01:40 -0500
Message-ID: <1019989.1741363300@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoZ_QvoFH-+Qm=DMLiojKbYipO75Qo5oX7iFppOP_ETZ0w@mail.gmail.com>
References: <CA+TgmoYSzg58hPuBmei46o8D3SKX+SZoO4K_aGQGwiRzvRApLg@mail.gmail.com>
	<CAA-aLv4MDS2aQLR9v5xgg9qiN7z_YrbcYf-FGWVCN=Jv_Psppg@mail.gmail.com>
	<CA+TgmoYf6JtCdYJ0Q4WgC-B9t07JTAH9MEMxX4_riuXvjM8ETQ@mail.gmail.com>
	<5bbca514250c1f8ee45f08ada94184b0ae109fe9.camel@j-davis.com>
	<CA+TgmoaE=7QGjWoWoi19gdF90YO1a0tq1-iyWVAhj82BMPnJSg@mail.gmail.com>
	<82f96eed213c8d76b36b8a3f504576e5af493270.camel@j-davis.com>
	<CA+TgmobPz9phD5PpXeUNTSrkc9uXkRg6Gfq6gPatpA-XTaQCcw@mail.gmail.com>
	<339167.1741200807@sss.pgh.pa.us>
	<CA+TgmobpP-7yOT-vdOFKFZoxe_z_36tgzorGyuF8wtZvZRtV8Q@mail.gmail.com>
	<476382.1741208421@sss.pgh.pa.us>
	<CA+TgmoZR-j1nqc9uz-9SMb2BecM-_bz4btixJ2X=9JCaCuEWEQ@mail.gmail.com>
	<480078.1741210736@sss.pgh.pa.us>
	<CA+TgmobK2+GwWwqpV-EAAdn5q14xphOm+JrE+mfOO8XqyN4HGQ@mail.gmail.com>
	<f36c0a45-98cd-40b2-a7cc-f2bf02b12890@eisentraut.org>
	<CA+TgmoZ_QvoFH-+Qm=DMLiojKbYipO75Qo5oX7iFppOP_ETZ0w@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Mar 7, 2025 at 9:38 AM Peter Eisentraut <peter@eisentraut.org> wrote:
>> Also, benign typedef redefinitions are a C11 feature.  In practice, all
>> compilers currently in play support it, and the only problem you'll get
>> is from the buildfarm members that are explicitly set up to warn about
>> accidental C11 use.  We could probably have a discussion about that, but
>> for this patch set, it's probably better to just deal with the status quo.

> Agreed. +1 for having a discussion at some point, though, because the
> effect of the current rules seems to be that you have to write "struct
> BananaSplit *" in a bunch of places instead of just 'BananaSplit *" to
> avoid redefining the typedef.

I'd be +1 if there's a way to allow that particular thing without
thereby opening the floodgates to every other C11 feature.  I expect
not all of C11 is universal yet, so I think the buildfarm animals
that are using -std=gnu99 are mostly doing us a service.  But yeah,
this particular thing is a pain in the rear.

			regards, tom lane





view thread (88+ messages)  latest in thread

Message-ID: <1019989.1741363300@sss.pgh.pa.us>
Permalink:  ../1019989.1741363300@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1019989.1741363300@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, peter@eisentraut.org, pgsql@j-davis.com, thom@linux.com
  Subject: Re: making EXPLAIN extensible
  In-Reply-To: <1019989.1741363300@sss.pgh.pa.us>
  References: <CA+TgmoYSzg58hPuBmei46o8D3SKX+SZoO4K_aGQGwiRzvRApLg@mail.gmail.com> <CAA-aLv4MDS2aQLR9v5xgg9qiN7z_YrbcYf-FGWVCN=Jv_Psppg@mail.gmail.com> <CA+TgmoYf6JtCdYJ0Q4WgC-B9t07JTAH9MEMxX4_riuXvjM8ETQ@mail.gmail.com> <5bbca514250c1f8ee45f08ada94184b0ae109fe9.camel@j-davis.com> <CA+TgmoaE=7QGjWoWoi19gdF90YO1a0tq1-iyWVAhj82BMPnJSg@mail.gmail.com> <82f96eed213c8d76b36b8a3f504576e5af493270.camel@j-davis.com> <CA+TgmobPz9phD5PpXeUNTSrkc9uXkRg6Gfq6gPatpA-XTaQCcw@mail.gmail.com> <339167.1741200807@sss.pgh.pa.us> <CA+TgmobpP-7yOT-vdOFKFZoxe_z_36tgzorGyuF8wtZvZRtV8Q@mail.gmail.com> <476382.1741208421@sss.pgh.pa.us> <CA+TgmoZR-j1nqc9uz-9SMb2BecM-_bz4btixJ2X=9JCaCuEWEQ@mail.gmail.com> <480078.1741210736@sss.pgh.pa.us> <CA+TgmobK2+GwWwqpV-EAAdn5q14xphOm+JrE+mfOO8XqyN4HGQ@mail.gmail.com> <f36c0a45-98cd-40b2-a7cc-f2bf02b12890@eisentraut.org> <CA+TgmoZ_QvoFH-+Qm=DMLiojKbYipO75Qo5oX7iFppOP_ETZ0w@mail.gmail.com> <1019989.1741363300@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox