Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 2019-10-07 19:57, Tom Lane wrote:
>> I'd just put them all in c.h. I see no reason why a new header
>> is helpful.
> Assert stuff is already in there, but surely stuff that calls elog()
> doesn't belong in there?
True, though I had the impression that Andres wanted to propose things
that would work in either frontend or backend, presumably with different
implementations. You could argue it either way as to whether to have
that in c.h (with an #ifdef) or separately in postgres.h and
postgres_fe.h.
regards, tom lane