Reindex after upgrade from PostgreSQL 12.10 to PostgreSQL 15.3

Поиск
Список
Период
Сортировка
От Hellen Jiang
Тема Reindex after upgrade from PostgreSQL 12.10 to PostgreSQL 15.3
Дата
Msg-id BLAPR17MB4193DBC13856191E1A05CF3ED201A@BLAPR17MB4193.namprd17.prod.outlook.com
обсуждение исходный текст
Ответы Re: Reindex after upgrade from PostgreSQL 12.10 to PostgreSQL 15.3  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-general

Hi,

I am going to upgrade our production database( postgresql 12.10) to postgresql 15.3.

After upgrade to 15.3,  Do you have to do re-index?

If I have to do re-index,  can I only do re-index on some partitioned tables?

We have a lot of big tables which are partitioned by date, for example, table1 has partitioned table by month table1_2023_01, table1_2023_02 , table1_2023_03 and so on.

Will that be good if I only run reindex on some partitioned table(table1_2023_06 and table1_2023_07), for example, REINDEX (VERBOSE) TABLE table1_2023_06; REINDEX (VERBOSE) TABLE table1_2023_07;

After reindex part of tables, I will run ANALYZE with vaccumdb

vacuumdb --analyze-only --jobs=8 -d <mydatabase>

 

Will the performance be as good as before I upgrade?

 

 

Thanks,

 

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

Предыдущее
От: Ben Hancock
Дата:
Сообщение: Re: Create DB privilege is not inherited
Следующее
От: Atul Kumar
Дата:
Сообщение: password error in batch script