diff --git a/plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreExecutionContext.java b/plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreExecutionContext.java index cb8ba10b7d71b82c6bce2b084be3faed1a9494bd..60b14a85fe88540ae1c159c2c1319eda77723cc8 100644 --- a/plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreExecutionContext.java +++ b/plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreExecutionContext.java @@ -207,10 +207,11 @@ public class PostgreExecutionContext extends JDBCExecutionContext implements DBC private void setSearchPath(DBRProgressMonitor monitor, String defSchemaName) throws DBCException { List newSearchPath = new ArrayList<>(getDefaultSearchPath()); int schemaIndex = newSearchPath.indexOf(defSchemaName); - if (schemaIndex == 0 || (schemaIndex == 1 && isUserFirstInPath(newSearchPath))) { + /*if (schemaIndex == 0 || (schemaIndex == 1 && isUserFirstInPath(newSearchPath))) { // Already default schema return; - } else { + } else*/ + { if (schemaIndex > 0) { // Remove from previous position newSearchPath.remove(schemaIndex);