You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As such troubleshooting / debugging is not always used and has a small performance impact, would be nice if the extension could start in disabled mode and one could enable it when the need arises with pg_show_plans_enable().
An alternative is of course to disable the extension from "shared_preload_libraries", but this requires server restart which might not work for all.
The text was updated successfully, but these errors were encountered:
It seems like currently we have a redundant variable, and none of the two give the desired functionality, i.e.:
static void
pgsp_ExecutorEnd(QueryDesc *queryDesc)
{
/* Bypass the following steps if this pgsp_enable is set to false */
if (pgsp_enable)
{
/* Delete entry */
SpinLockAcquire(&pgsp->elock);
if (pgsp->is_enable)
{
SpinLockRelease(&pgsp->elock);
delete_entry(MyProcPid);
}
else
SpinLockRelease(&pgsp->elock);
}
if (prev_ExecutorEnd)
prev_ExecutorEnd(queryDesc);
else
standard_ExecutorEnd(queryDesc);
}
The execution occurs iff both *_enable variables are set to true. I just cannot find the difference it makes having those two in the different states.
I will try to refactor this functionality a little bit.
kovmir
changed the title
Add somekind of option to start disabled
Start Disabled GUC Option
Jan 26, 2023
As such troubleshooting / debugging is not always used and has a small performance impact, would be nice if the extension could start in disabled mode and one could enable it when the need arises with pg_show_plans_enable().
An alternative is of course to disable the extension from "shared_preload_libraries", but this requires server restart which might not work for all.
The text was updated successfully, but these errors were encountered: