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

From Bertrand Drouvot
Subject Re: The PostgreSQL C Dialect
Date
Msg-id ajoDPh9rt7hxmhkx@bdtpg
Whole thread
Responses Re: The PostgreSQL C Dialect
List pgsql-hackers
Hi,

On Mon, Jun 22, 2026 at 12:39:36PM -0700, Christophe Pettus 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!

Thanks for doing this, that's cool work!

One comment about "The frontend/backend split and portability", what about adding
that (see 49bff412)

"
Headers never include postgres.h, postgres_fe.h, or c.h themselves.
"

say, before the "The FRONTEND macro" bullet?

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



pgsql-hackers by date:

Previous
From: John Naylor
Date:
Subject: Re: The PostgreSQL C Dialect
Next
From: Michael Paquier
Date:
Subject: Re: [PATCH] Warn when io_min_workers exceeds io_max_workers