From fd4bad1655391582f639527c325fc4a99680cc64 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Sun, 17 Jul 2022 17:29:32 -0700 Subject: Remove now superfluous declarations of dlsym()ed symbols. The prior commit declared them centrally. Author: Andres Freund Reviewed-By: Tom Lane Discussion: https://postgr.es/m/20211101020311.av6hphdl6xbjbuif@alap3.anarazel.de --- src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | 2 -- src/backend/replication/pgoutput/pgoutput.c | 2 -- src/pl/plperl/plperl.c | 1 - src/pl/plpgsql/src/plpgsql.h | 5 ----- src/pl/plpython/plpy_main.c | 2 -- src/pl/tcl/pltcl.c | 1 - src/test/modules/delay_execution/delay_execution.c | 3 --- src/test/modules/dummy_index_am/dummy_index_am.c | 2 -- src/test/modules/dummy_seclabel/dummy_seclabel.c | 3 --- src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c | 2 -- src/test/modules/test_oat_hooks/test_oat_hooks.c | 2 -- src/test/modules/test_rls_hooks/test_rls_hooks.c | 2 -- src/test/modules/test_shm_mq/test.c | 2 -- src/test/modules/worker_spi/worker_spi.c | 1 - 14 files changed, 30 deletions(-) (limited to 'src') diff --git a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c index 0d89db4e6a6..0b775b1e985 100644 --- a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c +++ b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c @@ -36,8 +36,6 @@ PG_MODULE_MAGIC; -void _PG_init(void); - struct WalReceiverConn { /* Current connection to the primary, if any */ diff --git a/src/backend/replication/pgoutput/pgoutput.c b/src/backend/replication/pgoutput/pgoutput.c index 2cbca4a0870..ba8a24d0999 100644 --- a/src/backend/replication/pgoutput/pgoutput.c +++ b/src/backend/replication/pgoutput/pgoutput.c @@ -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); diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c index edb93ec1c4c..af354a68ccd 100644 --- a/src/pl/plperl/plperl.c +++ b/src/pl/plperl/plperl.c @@ -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 **); diff --git a/src/pl/plpgsql/src/plpgsql.h b/src/pl/plpgsql/src/plpgsql.h index 4e6ee1c6198..19141602729 100644 --- a/src/pl/plpgsql/src/plpgsql.h +++ b/src/pl/plpgsql/src/plpgsql.h @@ -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 */ diff --git a/src/pl/plpython/plpy_main.c b/src/pl/plpython/plpy_main.c index 0bce1064951..a4d66f3057f 100644 --- a/src/pl/plpython/plpy_main.c +++ b/src/pl/plpython/plpy_main.c @@ -28,8 +28,6 @@ * exported functions */ -extern void _PG_init(void); - PG_MODULE_MAGIC; PG_FUNCTION_INFO_V1(plpython3_validator); diff --git a/src/pl/tcl/pltcl.c b/src/pl/tcl/pltcl.c index 0dd6d8ab2c2..eaa98d42c2e 100644 --- a/src/pl/tcl/pltcl.c +++ b/src/pl/tcl/pltcl.c @@ -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); diff --git a/src/test/modules/delay_execution/delay_execution.c b/src/test/modules/delay_execution/delay_execution.c index 407ebc0edaf..756c161872c 100644 --- a/src/test/modules/delay_execution/delay_execution.c +++ b/src/test/modules/delay_execution/delay_execution.c @@ -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 * diff --git a/src/test/modules/dummy_index_am/dummy_index_am.c b/src/test/modules/dummy_index_am/dummy_index_am.c index a0894ff9860..67c30394c80 100644 --- a/src/test/modules/dummy_index_am/dummy_index_am.c +++ b/src/test/modules/dummy_index_am/dummy_index_am.c @@ -23,8 +23,6 @@ PG_MODULE_MAGIC; -void _PG_init(void); - /* parse table for fillRelOptions */ relopt_parse_elt di_relopt_tab[6]; diff --git a/src/test/modules/dummy_seclabel/dummy_seclabel.c b/src/test/modules/dummy_seclabel/dummy_seclabel.c index 67658c1e122..8b03dcd7545 100644 --- a/src/test/modules/dummy_seclabel/dummy_seclabel.c +++ b/src/test/modules/dummy_seclabel/dummy_seclabel.c @@ -19,9 +19,6 @@ PG_MODULE_MAGIC; -/* Entrypoint of the module */ -void _PG_init(void); - PG_FUNCTION_INFO_V1(dummy_seclabel_dummy); static void diff --git a/src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c b/src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c index e9f2329a5aa..948706af852 100644 --- a/src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c +++ b/src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c @@ -20,8 +20,6 @@ PG_MODULE_MAGIC; -void _PG_init(void); - static char *ssl_passphrase = NULL; /* callback function */ diff --git a/src/test/modules/test_oat_hooks/test_oat_hooks.c b/src/test/modules/test_oat_hooks/test_oat_hooks.c index 900d597f5dd..8aa59bf18ad 100644 --- a/src/test/modules/test_oat_hooks/test_oat_hooks.c +++ b/src/test/modules/test_oat_hooks/test_oat_hooks.c @@ -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 */ diff --git a/src/test/modules/test_rls_hooks/test_rls_hooks.c b/src/test/modules/test_rls_hooks/test_rls_hooks.c index fd2864130eb..496846d9f49 100644 --- a/src/test/modules/test_rls_hooks/test_rls_hooks.c +++ b/src/test/modules/test_rls_hooks/test_rls_hooks.c @@ -29,8 +29,6 @@ PG_MODULE_MAGIC; -void _PG_init(void); - /* Install hooks */ void _PG_init(void) diff --git a/src/test/modules/test_shm_mq/test.c b/src/test/modules/test_shm_mq/test.c index 5a788692d95..1d1c184d8ce 100644 --- a/src/test/modules/test_shm_mq/test.c +++ b/src/test/modules/test_shm_mq/test.c @@ -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); diff --git a/src/test/modules/worker_spi/worker_spi.c b/src/test/modules/worker_spi/worker_spi.c index 5b541ec47f1..b37ef8beb60 100644 --- a/src/test/modules/worker_spi/worker_spi.c +++ b/src/test/modules/worker_spi/worker_spi.c @@ -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 */ -- cgit v1.2.3