Re: Statistics import and export: difference in statistics of materialized view dumped - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Statistics import and export: difference in statistics of materialized view dumped
Date
Msg-id 1a83225688da8a72a97029f69a222246638014ba.camel@j-davis.com
Whole thread Raw
In response to Re: Statistics import and export: difference in statistics of materialized view dumped  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Statistics import and export: difference in statistics of materialized view dumped
List pgsql-hackers
On Tue, 2025-03-11 at 11:26 -0400, Tom Lane wrote:
> Right, that was what I was thinking, but hadn't had time to look in
> detail.  The postDataBound dependency isn't real helpful here, we
> could lose that if we had the data dependency.

Attached a patch.

It's a bit messier than I expected, so I'm open to other suggestions.
The reason is because materialized view data is also pushed to
RESTORE_PASS_POST_ACL, so we need to do the same for the statistics
(otherwise the dependency is just ignored).

Regards,
    Jeff Davis


Attachment

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Non-text mode for pg_dumpall
Next
From: "David G. Johnston"
Date:
Subject: Introduce New Command Processing Chapter to Documentation