else if (canDebugPlpgsql == 2)
return true;
+ // Check the appropriate plugin is loaded
+ if (!ExecuteScalar(wxT("SHOW shared_preload_libraries;")).Contains(wxT("plugin_debugger.")))
+ {
+ canDebugPlpgsql = 1;
+ return false;
+ }
+
if (ExecuteScalar(wxT("SELECT count(*) FROM pg_proc WHERE proname = 'pldbg_get_target_info';")) == wxT("0"))
{
canDebugPlpgsql = 1;
else if (canDebugEdbspl == 2)
return true;
+ // Check the appropriate plugin is loaded
+ if (!ExecuteScalar(wxT("SHOW shared_preload_libraries;")).Contains(wxT("plugin_spl_debugger.")))
+ {
+ canDebugEdbspl = 1;
+ return false;
+ }
+
if (ExecuteScalar(wxT("SELECT count(*) FROM pg_proc WHERE proname = 'pldbg_get_target_info';")) == wxT("0"))
{
canDebugEdbspl = 1;