diff options
author | Tom Lane | 2023-12-29 15:57:11 +0000 |
---|---|---|
committer | Tom Lane | 2023-12-29 15:57:11 +0000 |
commit | 7418767f11d11ca4003ed3e8e96296eabb2acfe1 (patch) | |
tree | 1fbe0a51739137445a2ab39b3629630efcf0619a /src/backend/utils/Gen_fmgrtab.pl | |
parent | 541e8f14a185495f814ae0a0876a0d0c4118833a (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/[email protected]
Diffstat (limited to 'src/backend/utils/Gen_fmgrtab.pl')
0 files changed, 0 insertions, 0 deletions