diff options
author | Jeff Davis <jdavis@postgresql.org> | 2025-03-28 16:12:55 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2025-03-28 16:12:55 -0700 |
commit | a0a4601765b896079eb82a9d5cfa1f41154fcfdb (patch) | |
tree | 2ad736260a4c5120f37b5bf49d20c423a2483572 /src/backend/executor/nodeModifyTable.c | |
parent | 775a06d44c04e323158826ec256386e7211e154d (diff) | |
download | postgresql-a0a4601765b896079eb82a9d5cfa1f41154fcfdb.tar.gz postgresql-a0a4601765b896079eb82a9d5cfa1f41154fcfdb.zip |
Matview statistics depend on matview data.
REFRESH MATERIALIZED VIEW replaces the storage, which resets
statistics, so statistics must be restored afterward.
If both statistics and data are being dumped for a materialized view,
add a dependency from the former to the latter. Defer the statistics
to SECTION_POST_DATA, and use RESTORE_PASS_POST_ACL.
Reported-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Discussion: https://postgr.es/m/CAExHW5s47kmubpbbRJzSM-Zfe0Tj2O3GBagB7YAyE8rQ-V24Uw@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions