Remove now superfluous declarations of dlsym()ed symbols.
The prior commit declared them centrally. Author: Andres Freund <andres@anarazel.de> Reviewed-By: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/20211101020311.av6hphdl6xbjbuif@alap3.anarazel.de
This commit is contained in:
parent
f2b73c8d75
commit
fd4bad1655
|
@ -20,8 +20,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
/* GUC Variables */
|
||||
static int auth_delay_milliseconds;
|
||||
|
||||
|
|
|
@ -78,8 +78,6 @@ static ExecutorRun_hook_type prev_ExecutorRun = NULL;
|
|||
static ExecutorFinish_hook_type prev_ExecutorFinish = NULL;
|
||||
static ExecutorEnd_hook_type prev_ExecutorEnd = NULL;
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
static void explain_ExecutorStart(QueryDesc *queryDesc, int eflags);
|
||||
static void explain_ExecutorRun(QueryDesc *queryDesc,
|
||||
ScanDirection direction,
|
||||
|
|
|
@ -37,8 +37,6 @@ typedef struct bbsink_shell
|
|||
FILE *pipe;
|
||||
} bbsink_shell;
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
static void *shell_check_detail(char *target, char *target_detail);
|
||||
static bbsink *shell_get_sink(bbsink *next_sink, void *detail_arg);
|
||||
|
||||
|
|
|
@ -40,9 +40,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
void _PG_init(void);
|
||||
void _PG_archive_module_init(ArchiveModuleCallbacks *cb);
|
||||
|
||||
static char *archive_directory = NULL;
|
||||
static MemoryContext basic_archive_context;
|
||||
|
||||
|
|
|
@ -175,7 +175,6 @@ typedef struct BloomScanOpaqueData
|
|||
typedef BloomScanOpaqueData *BloomScanOpaque;
|
||||
|
||||
/* blutils.c */
|
||||
extern void _PG_init(void);
|
||||
extern void initBloomState(BloomState *state, Relation index);
|
||||
extern void BloomFillMetapage(Relation index, Page metaPage);
|
||||
extern void BloomInitMetapage(Relation index);
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
extern void _PG_init(void);
|
||||
|
||||
/* Linkage to functions in hstore module */
|
||||
typedef HStore *(*hstoreUpgrade_t) (Datum orig);
|
||||
static hstoreUpgrade_t hstoreUpgrade_p;
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
extern void _PG_init(void);
|
||||
|
||||
/* Linkage to functions in plpython module */
|
||||
typedef char *(*PLyObject_AsString_t) (PyObject *plrv);
|
||||
static PLyObject_AsString_t PLyObject_AsString_p;
|
||||
|
|
|
@ -924,8 +924,6 @@ eantoobig:
|
|||
* Exported routines.
|
||||
*---------------------------------------------------------*/
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
void
|
||||
_PG_init(void)
|
||||
{
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
/* for PLyObject_AsString in plpy_typeio.c */
|
||||
typedef char *(*PLyObject_AsString_t) (PyObject *plrv);
|
||||
static PLyObject_AsString_t PLyObject_AsString_p;
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
extern void _PG_init(void);
|
||||
|
||||
/* Linkage to functions in plpython module */
|
||||
typedef PyObject *(*PLyUnicode_FromStringAndSize_t) (const char *s, Py_ssize_t size);
|
||||
static PLyUnicode_FromStringAndSize_t PLyUnicode_FromStringAndSize_p;
|
||||
|
|
|
@ -32,8 +32,6 @@ static check_password_hook_type prev_check_password_hook = NULL;
|
|||
/* passwords shorter than this will be rejected */
|
||||
#define MIN_PWD_LENGTH 8
|
||||
|
||||
extern void _PG_init(void);
|
||||
|
||||
/*
|
||||
* check_password
|
||||
*
|
||||
|
|
|
@ -82,7 +82,6 @@ typedef struct AutoPrewarmSharedState
|
|||
int prewarmed_blocks;
|
||||
} AutoPrewarmSharedState;
|
||||
|
||||
void _PG_init(void);
|
||||
void autoprewarm_main(Datum main_arg);
|
||||
void autoprewarm_database_main(Datum main_arg);
|
||||
|
||||
|
|
|
@ -305,8 +305,6 @@ static bool pgss_save; /* whether to save stats across shutdown */
|
|||
|
||||
/*---- Function declarations ----*/
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
PG_FUNCTION_INFO_V1(pg_stat_statements_reset);
|
||||
PG_FUNCTION_INFO_V1(pg_stat_statements_reset_1_7);
|
||||
PG_FUNCTION_INFO_V1(pg_stat_statements_1_2);
|
||||
|
|
|
@ -20,8 +20,6 @@ double similarity_threshold = 0.3f;
|
|||
double word_similarity_threshold = 0.6f;
|
||||
double strict_word_similarity_threshold = 0.5f;
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
PG_FUNCTION_INFO_V1(set_limit);
|
||||
PG_FUNCTION_INFO_V1(show_limit);
|
||||
PG_FUNCTION_INFO_V1(show_trgm);
|
||||
|
|
|
@ -51,8 +51,6 @@ static PQconninfoOption *libpq_options;
|
|||
*/
|
||||
char *pgfdw_application_name = NULL;
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
/*
|
||||
* Helper functions
|
||||
*/
|
||||
|
|
|
@ -30,7 +30,6 @@ PG_MODULE_MAGIC;
|
|||
/*
|
||||
* Declarations
|
||||
*/
|
||||
void _PG_init(void);
|
||||
|
||||
/*
|
||||
* Saved hook entries (if stacked)
|
||||
|
|
|
@ -24,10 +24,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
/* These must be available to dlsym() */
|
||||
extern void _PG_init(void);
|
||||
extern void _PG_output_plugin_init(OutputPluginCallbacks *cb);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
MemoryContext context;
|
||||
|
|
|
@ -36,8 +36,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
struct WalReceiverConn
|
||||
{
|
||||
/* Current connection to the primary, if any */
|
||||
|
|
|
@ -35,8 +35,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
extern void _PG_output_plugin_init(OutputPluginCallbacks *cb);
|
||||
|
||||
static void pgoutput_startup(LogicalDecodingContext *ctx,
|
||||
OutputPluginOptions *opt, bool is_init);
|
||||
static void pgoutput_shutdown(LogicalDecodingContext *ctx);
|
||||
|
|
|
@ -245,7 +245,6 @@ static plperl_call_data *current_call_data = NULL;
|
|||
/**********************************************************************
|
||||
* Forward declarations
|
||||
**********************************************************************/
|
||||
void _PG_init(void);
|
||||
|
||||
static PerlInterpreter *plperl_init_interp(void);
|
||||
static void plperl_destroy_interp(PerlInterpreter **);
|
||||
|
|
|
@ -1264,11 +1264,6 @@ extern void plpgsql_adddatum(PLpgSQL_datum *newdatum);
|
|||
extern int plpgsql_add_initdatums(int **varnos);
|
||||
extern void plpgsql_HashTableInit(void);
|
||||
|
||||
/*
|
||||
* Functions in pl_handler.c
|
||||
*/
|
||||
extern void _PG_init(void);
|
||||
|
||||
/*
|
||||
* Functions in pl_exec.c
|
||||
*/
|
||||
|
|
|
@ -28,8 +28,6 @@
|
|||
* exported functions
|
||||
*/
|
||||
|
||||
extern void _PG_init(void);
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
PG_FUNCTION_INFO_V1(plpython3_validator);
|
||||
|
|
|
@ -261,7 +261,6 @@ static const TclExceptionNameMap exception_name_map[] = {
|
|||
/**********************************************************************
|
||||
* Forward declarations
|
||||
**********************************************************************/
|
||||
void _PG_init(void);
|
||||
|
||||
static void pltcl_init_interp(pltcl_interp_desc *interp_desc,
|
||||
Oid prolang, bool pltrusted);
|
||||
|
|
|
@ -36,9 +36,6 @@ static int post_planning_lock_id = 0;
|
|||
/* Save previous planner hook user to be a good citizen */
|
||||
static planner_hook_type prev_planner_hook = NULL;
|
||||
|
||||
/* Module load function */
|
||||
void _PG_init(void);
|
||||
|
||||
|
||||
/* planner_hook function to provide the desired delay */
|
||||
static PlannedStmt *
|
||||
|
|
|
@ -23,8 +23,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
/* parse table for fillRelOptions */
|
||||
relopt_parse_elt di_relopt_tab[6];
|
||||
|
||||
|
|
|
@ -19,9 +19,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
/* Entrypoint of the module */
|
||||
void _PG_init(void);
|
||||
|
||||
PG_FUNCTION_INFO_V1(dummy_seclabel_dummy);
|
||||
|
||||
static void
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
static char *ssl_passphrase = NULL;
|
||||
|
||||
/* callback function */
|
||||
|
|
|
@ -69,8 +69,6 @@ static char *accesstype_to_string(ObjectAccessType access, int subId);
|
|||
static char *accesstype_arg_to_string(ObjectAccessType access, void *arg);
|
||||
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
/*
|
||||
* Module load callback
|
||||
*/
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
/* Install hooks */
|
||||
void
|
||||
_PG_init(void)
|
||||
|
|
|
@ -24,8 +24,6 @@ PG_MODULE_MAGIC;
|
|||
PG_FUNCTION_INFO_V1(test_shm_mq);
|
||||
PG_FUNCTION_INFO_V1(test_shm_mq_pipelined);
|
||||
|
||||
void _PG_init(void);
|
||||
|
||||
static void verify_message(Size origlen, char *origdata, Size newlen,
|
||||
char *newdata);
|
||||
|
||||
|
|
|
@ -46,7 +46,6 @@ PG_MODULE_MAGIC;
|
|||
|
||||
PG_FUNCTION_INFO_V1(worker_spi_launch);
|
||||
|
||||
void _PG_init(void);
|
||||
void worker_spi_main(Datum) pg_attribute_noreturn();
|
||||
|
||||
/* GUC variables */
|
||||
|
|
Loading…
Reference in New Issue