PostGIS  2.2.7dev-r@@SVN_REVISION@@
void _PG_init ( void  )

Definition at line 46 of file postgis_module.c.

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

47 {
48 
49  coreIntHandler = pqsignal(SIGINT, handleInterrupt);
50 
51 #ifdef WIN32
52 #if POSTGIS_GEOS_VERSION >= 34
53  GEOS_interruptRegisterCallback(interruptCallback);
54 #endif
55  lwgeom_register_interrupt_callback(interruptCallback);
56 #endif
57 
58 #if 0
59  /* Define custom GUC variables. */
60  DefineCustomIntVariable(
61  "postgis.debug.level", /* name */
62  "Sets the debugging level of PostGIS.", /* short_desc */
63  "This is an experimental configuration.", /* long_desc */
64  &postgis_debug_level, /* valueAddr */
65  0, 8, /* min-max */
66  0, /* bootValue */
67  PGC_SUSET, /* GucContext context */
68  GUC_UNIT_MS, /* int flags */
69 #if POSTGIS_PGSQL_VERSION >= 91
70  NULL, /* GucStringCheckHook check_hook */
71 #endif
72  NULL, /* GucStringAssignHook assign_hook */
73  NULL /* GucShowHook show_hook */
74  );
75 #endif
76 
77 #if 0
78  /* Define custom GUC variables. */
79  DefineCustomStringVariable(
80  "postgis.greeting.string", /* name */
81  "Sets the greeting string used on postgis module load.", /* short_desc */
82  "This is an experimental configuration.", /* long_desc */
83  &greeting, /* valueAddr */
84  "Welcome to PostGIS " POSTGIS_VERSION, /* bootValue */
85  PGC_SUSET, /* GucContext context */
86  GUC_UNIT_MS, /* int flags */
87 #if POSTGIS_PGSQL_VERSION >= 91
88  NULL, /* GucStringCheckHook check_hook */
89 #endif
90  NULL, /* GucStringAssignHook assign_hook */
91  NULL /* GucShowHook show_hook */
92  );
93 #endif
94 
95  /* install PostgreSQL handlers */
96  pg_install_lwgeom_handlers();
97 
98  /* initialize geometry backend */
100 }
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:834
static void handleInterrupt(int sig)

Here is the call graph for this function: