[1.6.x] Fixed #20829 -- Skip postgis metadata tables with introspection

Backport of 24088618 from master.