diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-12-29 10:57:11 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-12-29 10:57:11 -0500 |
commit | 8d4e8b746815505c3b808ab96674ec2e140afc56 (patch) | |
tree | 082efc6e2c478161b38605020c0d7a7abd1d87e9 /src/backend/executor | |
parent | d2580bc312d9996b9caa525695fd7a4e75533f1b (diff) |
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 stats objects, it might be profitable
to think a little harder about what to do with them. But for now
there seems no point in considering a stats object as anything but
an appendage of its table.)
Rian McGuire and Tom Lane, per report from Rian McGuire.
Back-patch to supported branches.
Discussion: https://postgr.es/m/7075d3aa-3f05-44a5-b68f-47dc6a8a0550@buildkite.com
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions