Re: The PostgreSQL C Dialect - Mailing list pgsql-hackers

From John Naylor
Subject Re: The PostgreSQL C Dialect
Date
Msg-id CANWCAZZJxgDAUsBK-1CctczwTz2TVo3TzjhhSD7fAA9EWte3eA@mail.gmail.com
Whole thread
Responses Re: The PostgreSQL C Dialect
List pgsql-hackers
On Tue, Jun 23, 2026 at 2:39 AM Christophe Pettus <xof@thebuild.com> wrote:
>
> When I was writing my first PostgreSQL extension, I was at sea on a lot of the conventions that make up the
"PostgreSQLC Dialect."  I've taken my notes, added some additional things that confused me, and put it up on the wiki
forreview: 
>
>         https://wiki.postgresql.org/wiki/The_PostgreSQL_C_Dialect
>
> Feedback welcome, of course!

Cool work! Minor comments:

Size, Index - These are not common, and I think they are actually
discouraged now, in favor of the more common size_t and uint32. I'm
not sure if there's a consensus on that, though.

C99 -> we started requiring C11 during the dev cycle of the PG19, and
it doesn't seem to early to mention that. The part about C99 features
we don't allow are still accurate, I believe.

--
John Naylor
Amazon Web Services



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Heads Up: cirrus-ci is shutting down June 1st
Next
From: Bertrand Drouvot
Date:
Subject: Re: The PostgreSQL C Dialect