From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jack Orenstein <jao@geophile.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Missing declaration of _PG_init()
Date: Fri, 08 Jan 2021 10:43:58 -0500
Message-ID: <284622.1610120638@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGNxcasojEnJ2FXaCh4Z30kjiXYU5wLh8H+9JAs4cszq9=aspQ@mail.gmail.com>
References: <CAGNxcasojEnJ2FXaCh4Z30kjiXYU5wLh8H+9JAs4cszq9=aspQ@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, jao@geophile.com
Subject: Re: Missing declaration of _PG_init()
In-Reply-To: <284622.1610120638@sss.pgh.pa.us>
References: <CAGNxcasojEnJ2FXaCh4Z30kjiXYU5wLh8H+9JAs4cszq9=aspQ@mail.gmail.com> <284622.1610120638@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox