citus
citus copied to clipboard
metadata sync fails when there is a customer view based on pg_stat_statements
pg_stat_statements.total_time column was dropped at PG13.
issue is
- DB is on PG12, citus 10.2
- DB has a view or a function that uses pg_stat_statements.total_time
- user upgrades DB to PG13 and citus 11.x
- metadata sync fails with a sync failure saying pg_stat_statements.total_time does not exist
Afaict this is not related to Citus. The upgrade would also fail on plain postgres afaict, because the view or function (defined by the user) cannot possibly exist in PG13.
same or related #7057