\r
Date Dev Ver Change details\r
---------- --- ------ --------------\r
+2009-07-20 GL 1.10.1 Fix the dlgFunction handling of preload libraries, per\r
+ report from Michael Shapiro.\r
2009-07-20 GL 1.12.0 Multiple statements are an issue with pgPool-II in\r
its replication mode.\r
2009-07-19 GL 1.10.1 Fix schedule and step dialogs [Ashesh Vashi, Guillaume\r
bool pgDatabase::CanDebugPlpgsql()
{
+ wxString preload_option;
+
// Result cache - 0 = not tested, 1 = false, 2 = true.
if (canDebugPlpgsql == 1)
return false;
// the super users.
if (GetServer()->GetSuperUser())
{
+ // Parameter's name depends of the backend's version
+ if (server->GetConnection()->BackendMinimumVersion(8, 2))
+ {
+ preload_option = wxT("shared_preload_libraries");
+ }
+ else
+ {
+ preload_option = wxT("preload_libraries");
+ }
+
// Check the appropriate plugin is loaded
- if (!ExecuteScalar(wxT("SHOW shared_preload_libraries;")).Contains(wxT("plugin_debugger")))
+ if (!ExecuteScalar(wxT("SHOW ") + preload_option).Contains(wxT("plugin_debugger")))
{
canDebugPlpgsql = 1;
return false;