diff --git a/plugins/dbgate-plugin-postgres/src/backend/Analyser.js b/plugins/dbgate-plugin-postgres/src/backend/Analyser.js index 54459527d..351b92b71 100644 --- a/plugins/dbgate-plugin-postgres/src/backend/Analyser.js +++ b/plugins/dbgate-plugin-postgres/src/backend/Analyser.js @@ -67,8 +67,12 @@ class Analyser extends DatabaseAnalyser { ? await this.driver.query(this.pool, this.createQuery('matviewColumns', ['matviews'])) : null; const routines = await this.driver.query(this.pool, this.createQuery('routines', ['procedures', 'functions'])); - const indexes = await this.driver.query(this.pool, this.createQuery('indexes', ['tables'])); - const indexcols = await this.driver.query(this.pool, this.createQuery('indexcols', ['tables'])); + const indexes = this.driver.__analyserInternals.skipIndexes + ? { rows: [] } + : await this.driver.query(this.pool, this.createQuery('indexes', ['tables'])); + const indexcols = this.driver.__analyserInternals.skipIndexes + ? { rows: [] } + : await this.driver.query(this.pool, this.createQuery('indexcols', ['tables'])); const uniqueNames = await this.driver.query(this.pool, this.createQuery('uniqueNames', ['tables'])); return { diff --git a/plugins/dbgate-plugin-postgres/src/frontend/drivers.js b/plugins/dbgate-plugin-postgres/src/frontend/drivers.js index 79409b831..7599e2448 100644 --- a/plugins/dbgate-plugin-postgres/src/frontend/drivers.js +++ b/plugins/dbgate-plugin-postgres/src/frontend/drivers.js @@ -83,6 +83,10 @@ const redshiftDriver = { ...dialect, stringAgg: false, }, + __analyserInternals: { + refTableCond: '', + skipIndexes: true, + }, engine: 'redshift@dbgate-plugin-postgres', title: 'Amazon Redshift', defaultPort: 5439,