Skip to content

Commit b75a322

Browse files
committed
_PG_init is not used by Postgres engine
1 parent 18d3e6b commit b75a322

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/plpgsql_check.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,13 @@ static const struct config_enum_entry tracer_level_options[] = {
8585
};
8686

8787
void _PG_init(void);
88+
89+
#if PG_VERSION_NUM < 150000
90+
8891
void _PG_fini(void);
8992

93+
#endif
94+
9095
shmem_startup_hook_type prev_shmem_startup_hook = NULL;
9196

9297
bool plpgsql_check_regress_test_mode;
@@ -321,6 +326,8 @@ _PG_init(void)
321326
inited = true;
322327
}
323328

329+
#if PG_VERSION_NUM < 150000
330+
324331
/*
325332
* Module unload callback
326333
*/
@@ -335,3 +342,5 @@ _PG_fini(void)
335342
needs_fmgr_hook = plpgsql_check_next_needs_fmgr_hook;
336343
fmgr_hook = plpgsql_check_next_fmgr_hook;
337344
}
345+
346+
#endif

0 commit comments

Comments
 (0)