PostGIS  2.4.9dev-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(), and lwgeom_register_interrupt_callback().

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  NULL, /* GucStringCheckHook check_hook */
83  NULL, /* GucStringAssignHook assign_hook */
84  NULL /* GucShowHook show_hook */
85  );
86 #endif
87 
88 #if 0
89  /* Define custom GUC variables. */
90  DefineCustomStringVariable(
91  "postgis.greeting.string", /* name */
92  "Sets the greeting string used on postgis module load.", /* short_desc */
93  "This is an experimental configuration.", /* long_desc */
94  &greeting, /* valueAddr */
95  "Welcome to PostGIS " POSTGIS_VERSION, /* bootValue */
96  PGC_SUSET, /* GucContext context */
97  GUC_UNIT_MS, /* int flags */
98  NULL, /* GucStringCheckHook check_hook */
99  NULL, /* GucStringAssignHook assign_hook */
100  NULL /* GucShowHook show_hook */
101  );
102 #endif
103 
104  /* install PostgreSQL handlers */
105  pg_install_lwgeom_handlers();
106 
107  /* initialize geometry backend */
109 }
static pqsigfunc coreIntHandler
void lwgeom_init_backend()
lwinterrupt_callback * lwgeom_register_interrupt_callback(lwinterrupt_callback *)
Definition: lwgeom_api.c:708
static void handleInterrupt(int sig)
Here is the call graph for this function: