Re: Missing declaration of _PG_init()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jack Orenstein <jao(at)geophile(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Missing declaration of _PG_init()
Date: 2021-01-08 15:43:58
Message-ID: 284622.1610120638@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jack Orenstein <jao(at)geophile(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Lewis 2021-01-08 15:52:36 Re: Autovacuum not functioning for large tables but it is working for few other small tables.
Previous Message Tom Lane 2021-01-08 15:41:13 Re: How to keep format of views source code as entered?