hunk.code_window:         const tableNamesString = tableNames.map(name => "'" + name + "'").join(", ");
           const tablesSql      = `SELECT * FROM information_schema.tables WHERE table_catalog = '${this.dbName}' AND table_schema = '${this.schemaName}' AND table_name IN (${tableNamesString})`;
           const columnsSql     = `SELECT * FROM information_schema.columns WHERE table_catalog = '${this.dbName}' AND table_schema = '${this.schemaName}'`;
           const indicesSql     = `SELECT t.relname AS table_name, i.relname AS index_name, a.attname AS column_name  FROM pg_class t, pg_class i, pg_index ix, pg_attribute a, pg_namespace ns
   WHERE t.oid = ix.indrelid AND i.oid = ix.indexrelid AND a.attrelid = t.oid
   AND a.attnum = ANY(ix.indkey) AND t.relkind = 'r' AND t.relname IN (${tableNamesString}) AND t.relnamespace = ns.OID AND ns.nspname ='${this.schemaName}' ORDER BY t.relname, i.relname`;
           const foreignKeysSql = `SELECT table_name, constraint_name FROM information_schema.table_constraints WHERE table_catalog = '${this.dbName}' AND table_schema = '${this.schemaName}' AND constraint_type = 'FOREIGN KEY'`;
           const uniqueKeysSql  = `SELECT * FROM information_schema.table_constraints WHERE table_catalog = '${this.dbName}' AND table_schema = '${this.schemaName}' AND constraint_type = 'UNIQUE'`;
           const primaryKeysSql = `SELECT c.column_name, tc.table_name, tc.constraint_name FROM information_schema.table_constraints tc
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:         const indicesSql     = `SELECT t.relname AS table_name, i.relname AS index_name, a.attname AS column_name, ix.indisunique AS is_unique, a.attnum, ix.indkey FROM pg_class t, pg_class i, pg_index ix, pg_attribute a, pg_namespace ns
  
hunk.file_path: src/driver/postgres/PostgresQueryRunner.ts
hunk.type: replace
file: import {ColumnType} from "../driver/types/ColumnTypes";
  import {DatabaseType} from "../driver/types/DatabaseType";
  import {ColumnMetadata} from "../metadata/ColumnMetadata";
  
  export class DataTypeNotSupportedError extends Error {
      name = "DataTypeNotSupportedError";
  
      constructor(column: ColumnMetadata, dataType: ColumnType, database?: DatabaseType) {
          super();
          const type = typeof dataType === "string" ? dataType : (<any>dataType).name;
          this.message = `Data type "${type}" in "${column.entityMetadata.targetName}.${column.propertyName}" is not supported by "${database}" database.`;
      }
  
  }