Re: Statistics import and export: difference in statistics of materialized view dumped

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Statistics import and export: difference in statistics of materialized view dumped
Дата
Msg-id 1a83225688da8a72a97029f69a222246638014ba.camel@j-davis.com
обсуждение исходный текст
Ответ на Re: Statistics import and export: difference in statistics of materialized view dumped  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Statistics import and export: difference in statistics of materialized view dumped
Список 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


Вложения

В списке pgsql-hackers по дате отправления: