-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
Description
#if PG_VERSION_NUM >= 90300
tid = RegisterTimeout(USER_TIMEOUT, terminationTimeoutHandler);
#else
saveSigAlrm = pqsignal(SIGALRM, terminationTimeoutHandler);
enable_sig_alarm(5000, false);
#endif
elog(DEBUG2, "shutting down the Java virtual machine");
JNI_destroyVM(s_javaVM);
#if PG_VERSION_NUM >= 90300
disable_timeout(tid, false);
#else
disable_sig_alarm(false);
pqsignal(SIGALRM, saveSigAlrm);
#endif
static void _destroyJavaVM(int status, Datum dummy)
Hi~
Why is enable_timeout_after(tid, 5000) not used when PG_VERSION_NUM >= 90300, like when PG_VERSION_NUM < 90300.
I think when PG_VERSION_NUM >= 90300, The timer does not really take effect.
Metadata
Metadata
Assignees
Labels
No labels