diff --git a/plugins/dbgate-plugin-postgres/src/backend/drivers.js b/plugins/dbgate-plugin-postgres/src/backend/drivers.js index b5275c25..c863b3b3 100644 --- a/plugins/dbgate-plugin-postgres/src/backend/drivers.js +++ b/plugins/dbgate-plugin-postgres/src/backend/drivers.js @@ -137,16 +137,6 @@ const drivers = driverBases.map(driverBase => ({ options.done(); // return stream; }, - // async analyseSingleObject(pool, name, typeField = 'tables') { - // const analyser = new PostgreAnalyser(pool, this); - // analyser.singleObjectFilter = { ...name, typeField }; - // const res = await analyser.fullAnalysis(); - // return res.tables[0]; - // }, - // // @ts-ignore - // analyseSingleTable(pool, name) { - // return this.analyseSingleObject(pool, name, 'tables'); - // }, async getVersion(client) { const { rows } = await this.query(client, 'SELECT version()'); const { version } = rows[0]; @@ -155,14 +145,6 @@ const drivers = driverBases.map(driverBase => ({ versionText: (version || '').replace(/\s*\(.*$/, ''), }; }, - // async analyseFull(pool) { - // const analyser = new PostgreAnalyser(pool, this); - // return analyser.fullAnalysis(); - // }, - // async analyseIncremental(pool, structure) { - // const analyser = new PostgreAnalyser(pool, this); - // return analyser.incrementalAnalysis(structure); - // }, async readQuery(client, sql, structure) { const query = new pgQueryStream(sql, undefined, { rowMode: 'array' }); @@ -209,9 +191,6 @@ const drivers = driverBases.map(driverBase => ({ return pass; }, - // createDumper() { - // return new PostgreDumper(this); - // }, async writeTable(pool, name, options) { // @ts-ignore return createBulkInsertStreamBase(this, stream, pool, name, options); diff --git a/plugins/dbgate-plugin-postgres/src/frontend/drivers.js b/plugins/dbgate-plugin-postgres/src/frontend/drivers.js index 0c7e9a95..86f5eacf 100644 --- a/plugins/dbgate-plugin-postgres/src/frontend/drivers.js +++ b/plugins/dbgate-plugin-postgres/src/frontend/drivers.js @@ -41,7 +41,7 @@ const redshiftDriver = { dialect, engine: 'red@dbgate-plugin-postgres', title: 'Amazon Redshift', - defaultPort: 5432, + defaultPort: 5439, }; module.exports = [postgresDriver, cockroachDriver, redshiftDriver];