mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 03:16:01 +00:00
postgres - show system databases when using separate schemas
This commit is contained in:
@@ -59,7 +59,7 @@ class Analyser extends DatabaseAnalyser {
|
||||
const query = super.createQuery(sql[resFileName], typeFields, replacements);
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
async _computeSingleObjectId() {
|
||||
const { typeField, schemaName, pureName } = this.singleObjectFilter;
|
||||
this.singleObjectId = `${typeField}:${schemaName || 'public'}.${pureName}`;
|
||||
@@ -364,6 +364,10 @@ class Analyser extends DatabaseAnalyser {
|
||||
})),
|
||||
};
|
||||
}
|
||||
|
||||
getDefaultSchemaNameCondition() {
|
||||
return `not in ('pg_catalog', 'pg_toast', 'information_schema')`;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Analyser;
|
||||
|
||||
Reference in New Issue
Block a user