Commits

Kirill Simonov committed f8b8dfc

Postgresql introspector should ignore dropped columns that are still in the catalog.

Comments (0)

Files changed (1)

src/htsql_pgsql/introspect.py

         for relid, num in sorted(self.meta.pg_attribute_by_class[table_oid]):
             att = self.meta.pg_attribute[relid, num]
             name = att.attname
+            if att.attisdropped:
+                continue
             if not self.permit_column(schema_name, table_name, name):
                 continue
             domain = self.introspect_domain(relid, num)