Craig Ringer <> writes:
> Is there any reason _not_ to PGDLLEXPORT all GUCs, other than cosmetic
> concerns?

That seems morally equivalent to "is there a reason not to make every
static variable global?".

IOW, no, I don't accept this proposition.  Every time we DLLEXPORT some
variable, we lose the freedom to redefine it later.  So DLLEXPORT'ing GUCs
should be on a case by case basis, just as for any other variable.  In
some cases it might be smarter to export a wrapper function.

                        regards, tom lane

Sent via pgsql-hackers mailing list (
To make changes to your subscription:

Reply via email to