PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ _PG_init()

void _PG_init ( void  )

Definition at line 59 of file postgis_module.c.

References _PG_fini(), coreIntHandler, handleInterrupt(), lwgeom_init_backend(), lwgeom_register_interrupt_callback(), and POSTGIS_PGSQL_VERSION.

60 {
61 
62  coreIntHandler = pqsignal(SIGINT, handleInterrupt);
63 
64 #ifdef WIN32
65 #if POSTGIS_GEOS_VERSION >= 34
66  GEOS_interruptRegisterCallback(interruptCallback);
67 #endif
68  lwgeom_register_interrupt_callback(interruptCallback);
69 #endif
70 
71 #if 0
72  /* Define custom GUC variables. */
73  DefineCustomIntVariable(
74  "postgis.debug.level", /* name */
75  "Sets the debugging level of PostGIS.", /* short_desc */
76  "This is an experimental configuration.", /* long_desc */
77  &postgis_debug_level, /* valueAddr */
78  0, 8, /* min-max */
79  0, /* bootValue */
80  PGC_SUSET, /* GucContext context */
81  GUC_UNIT_MS, /* int flags */
82 #if POSTGIS_PGSQL_VERSION >= 91
83  NULL, /* GucStringCheckHook check_hook */
84 #endif
85  NULL, /* GucStringAssignHook assign_hook */
86  NULL /* GucShowHook show_hook */
87  );
88 #endif
89 
90 #if 0
91  /* Define custom GUC variables. */
92  DefineCustomStringVariable(
93  "postgis.greeting.string", /* name */
94  "Sets the greeting string used on postgis module load.", /* short_desc */
95  "This is an experimental configuration.", /* long_desc */
96  &greeting, /* valueAddr */
97  "Welcome to PostGIS " POSTGIS_VERSION, /* bootValue */
98  PGC_SUSET, /* GucContext context */
99  GUC_UNIT_MS, /* int flags */
100 #if POSTGIS_PGSQL_VERSION >= 91
101  NULL, /* GucStringCheckHook check_hook */
102 #endif
103  NULL, /* GucStringAssignHook assign_hook */
104  NULL /* GucShowHook show_hook */
105  );
106 #endif
107 
108  /* install PostgreSQL handlers */
109  pg_install_lwgeom_handlers();
110 
111  /* initialize geometry backend */
113 }
static pqsigfunc coreIntHandler
void lwgeom_init_backend()
#define POSTGIS_PGSQL_VERSION
Definition: sqldefines.h:9
lwinterrupt_callback * lwgeom_register_interrupt_callback(lwinterrupt_callback *)
Definition: lwgeom_api.c:847
static void handleInterrupt(int sig)
Here is the call graph for this function: