postgresql/src
Jeff Davis a0a4601765 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
2025-03-28 16:12:55 -07:00
..
backend Make group_similar_or_args() reorder clause list as little as possible 2025-03-28 23:37:49 +02:00
bin Matview statistics depend on matview data. 2025-03-28 16:12:55 -07:00
common Fix integer-overflow problem in scram_SaltedPassword() 2025-03-26 17:46:51 +09:00
fe_utils pg_rewind: Add dbname to primary_conninfo when using --write-recovery-conf. 2025-03-12 16:56:04 -07:00
include Optimize popcount functions with ARM SVE intrinsics. 2025-03-28 16:20:20 -05:00
interfaces Revert "Tidy up locale thread safety in ECPG library." 2025-03-28 21:27:37 +01:00
makefiles aio: Add liburing dependency 2025-03-26 19:45:32 -04:00
pl Use PG_MODULE_MAGIC_EXT in our installable shared libraries. 2025-03-26 11:11:02 -04:00
port Optimize popcount functions with ARM SVE intrinsics. 2025-03-28 16:20:20 -05:00
template thread-safety: gmtime_r(), localtime_r() 2024-08-23 07:43:04 +02:00
test Make group_similar_or_args() reorder clause list as little as possible 2025-03-28 23:37:49 +02:00
timezone pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
tools Use streaming read I/O in heap amcheck 2025-03-27 14:04:14 -04:00
tutorial Doc: simplify the tutorial's window-function examples. 2025-01-21 14:43:21 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in aio: Add liburing dependency 2025-03-26 19:45:32 -04:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00