pg_upgrade dead code for pre-8.4 versions

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема pg_upgrade dead code for pre-8.4 versions
Дата
Msg-id CABUevEx-D0PNVe00tkeQRGennZQwDtBJn=493MJt-x6sppbUxA@mail.gmail.com
обсуждение исходный текст
Ответы Re: pg_upgrade dead code for pre-8.4 versions  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
pg_upgrade documentation says it supports upgrades from 8.4 and newer.

But there is code in there that makes a check and differs pre-8.4 from 8.4-or-newer.

ISTM that code could be cleaned out, because it should be dead based on the initial check that we are upgrading from 8.4 or later?

This appears to be:
* The code in the analyze script (see a follow-up email on this), which actually tries to generate a vacuum script if it's a pre-8.4 without visibility map
* The file copy code in relfilenode.c that copies vm and fsm files only from 8.4 and up (which should now be always)

Or am I misreading something?

//Magnus

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Resetting spilled txn statistics in pg_stat_replication
Следующее
От: Masahiro Ikeda
Дата:
Сообщение: Re: Add session statistics to pg_stat_database