Skip to content

Commit 21559b6

Browse files
committed
small code cleaning
1 parent 6a89456 commit 21559b6

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/plpgsql_check.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ plpgsql_check_check_ext_version(Oid fn_oid)
205205
void
206206
_PG_init(void)
207207
{
208-
209208
/* Be sure we do initialization only once (should be redundant now) */
210209
static bool inited = false;
211210

@@ -451,7 +450,6 @@ _PG_init(void)
451450
/* Use shared memory when we can register more for self */
452451
if (process_shared_preload_libraries_in_progress)
453452
{
454-
455453
DefineCustomIntVariable("plpgsql_check.profiler_max_shared_chunks",
456454
"maximum numbers of statements chunks in shared memory",
457455
NULL,
@@ -489,17 +487,15 @@ _PG_init(void)
489487
}
490488

491489
plch_init_plugin();
492-
//simple_plugin_init();
493-
494490

495491
plpgsql_check_passive_check_init();
496492
plpgsql_check_profiler_init();
497493
plpgsql_check_tracer_init();
498494
plpgsql_check_cursors_leaks_init();
499495

500-
501496
#if PG_VERSION_NUM >= 180000
502497

498+
/* used for checking expected version of SQL interface (extension) */
503499
CacheRegisterSyscacheCallback(EXTENSIONOID,
504500
pg_extension_cache_callback,
505501
(Datum) 0);

0 commit comments

Comments
 (0)