pgsql: pgstat: Fix transactional stats dropping for indexes

2022-09-23 Thread Andres Freund
pgstat: Fix transactional stats dropping for indexes Because index creation does not go through heap_create_with_catalog() we didn't call pgstat_create_relation(), leading to index stats of a newly created realtion not getting dropped during rollback. To fix, move the pgstat_create_relation() to h

pgsql: pgstat: Fix transactional stats dropping for indexes

2022-09-23 Thread Andres Freund
pgstat: Fix transactional stats dropping for indexes Because index creation does not go through heap_create_with_catalog() we didn't call pgstat_create_relation(), leading to index stats of a newly created realtion not getting dropped during rollback. To fix, move the pgstat_create_relation() to h