pgsql: Fix assorted errors in pg_dump's handling of extended statistics

2018-02-11 Thread Tom Lane
Fix assorted errors in pg_dump's handling of extended statistics objects. pg_dump supposed that a stats object necessarily shares the same schema as its underlying table, and that it doesn't have a separate owner. These things may have been true during early development of the feature, but they ar

pgsql: Fix assorted errors in pg_dump's handling of extended statistics

2018-02-11 Thread Tom Lane
Fix assorted errors in pg_dump's handling of extended statistics objects. pg_dump supposed that a stats object necessarily shares the same schema as its underlying table, and that it doesn't have a separate owner. These things may have been true during early development of the feature, but they ar