"Sibte Abbas" <sibtay(at)gmail(dot)com> writes:
> Considering the above fact, perhaps the actual problem is that when a
> column gets removed from a table as a result of drop <column
> type/domain> cascade, the tuple descriptor (more specifically
> rel->rd_att field) for that relation is not updated properly?
No, the problem is that map_sql_typecoll_to_xmlschema_types is unaware
that it must ignore dropped columns :-(. I committed a fix a few
minutes ago.
regards, tom lane