On Tue, Jun 23, 2026 at 2:39 AM Christophe Pettus <[email protected]> wrote: > > When I was writing my first PostgreSQL extension, I was at sea on a lot of > the conventions that make up the "PostgreSQL C Dialect." I've taken my > notes, added some additional things that confused me, and put it up on the > wiki for review: > > 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
