pgsql: In pg_dump, don't dump a stats object unless dumping underlying

2023-12-29 Thread Tom Lane
In pg_dump, don't dump a stats object unless dumping underlying table. If the underlying table isn't being dumped, it's useless to dump an extended statistics object; it'll just cause errors at restore. We have always applied similar policies to, say, indexes. (When and if we get cross-table stat

pgsql: In pg_dump, don't dump a stats object unless dumping underlying

2023-12-29 Thread Tom Lane
In pg_dump, don't dump a stats object unless dumping underlying table. If the underlying table isn't being dumped, it's useless to dump an extended statistics object; it'll just cause errors at restore. We have always applied similar policies to, say, indexes. (When and if we get cross-table stat

pgsql: In pg_dump, don't dump a stats object unless dumping underlying

2023-12-29 Thread Tom Lane
In pg_dump, don't dump a stats object unless dumping underlying table. If the underlying table isn't being dumped, it's useless to dump an extended statistics object; it'll just cause errors at restore. We have always applied similar policies to, say, indexes. (When and if we get cross-table stat

pgsql: In pg_dump, don't dump a stats object unless dumping underlying

2023-12-29 Thread Tom Lane
In pg_dump, don't dump a stats object unless dumping underlying table. If the underlying table isn't being dumped, it's useless to dump an extended statistics object; it'll just cause errors at restore. We have always applied similar policies to, say, indexes. (When and if we get cross-table stat

pgsql: In pg_dump, don't dump a stats object unless dumping underlying

2023-12-29 Thread Tom Lane
In pg_dump, don't dump a stats object unless dumping underlying table. If the underlying table isn't being dumped, it's useless to dump an extended statistics object; it'll just cause errors at restore. We have always applied similar policies to, say, indexes. (When and if we get cross-table stat

pgsql: In pg_dump, don't dump a stats object unless dumping underlying

2023-12-29 Thread Tom Lane
In pg_dump, don't dump a stats object unless dumping underlying table. If the underlying table isn't being dumped, it's useless to dump an extended statistics object; it'll just cause errors at restore. We have always applied similar policies to, say, indexes. (When and if we get cross-table stat