Re: Missing declaration of _PG_init() - Mailing list pgsql-general

From Tom Lane
Subject Re: Missing declaration of _PG_init()
Date
Msg-id 284622.1610120638@sss.pgh.pa.us
Whole thread Raw
In response to Missing declaration of _PG_init()  (Jack Orenstein <jao@geophile.com>)
List pgsql-general
Jack Orenstein <jao@geophile.com> writes:
> Should _PG_init(void) be declared in someplace included by postgres.h or
> fmgr.h?

No, because it's something a given module might or might not provide.
Also, a global extern might give the impression that this was a global
function that the core code provides, rather than a per-module function.

            regards, tom lane



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to keep format of views source code as entered?
Next
From: Adrian Klaver
Date:
Subject: Re: How to keep format of views source code as entered?