Re: pg_upgrade dead code for pre-8.4 versions

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pg_upgrade dead code for pre-8.4 versions
Дата
Msg-id 20201006184521.GA12277@momjian.us
обсуждение исходный текст
Ответ на Re: pg_upgrade dead code for pre-8.4 versions  (Daniel Gustafsson <daniel@yesql.se>)
Ответы Re: pg_upgrade dead code for pre-8.4 versions  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
On Tue, Oct  6, 2020 at 11:40:57AM +0200, Daniel Gustafsson wrote:
> > On 6 Oct 2020, at 11:27, Magnus Hagander <magnus@hagander.net> wrote:
> 
> > ISTM that code could be cleaned out, because it should be dead based on the initial check that we are upgrading
from8.4 or later?
 
> 
> +1.  Commit 2209b3923a7afe0b removed support for 8.3 so anything left checking
> for pre-8.4 should be removed as a pre-8.4 source cluster couldn't be upgraded
> with pg_upgrade today.

OK, fixed with the attached patch, applied to all branches.  There was
code that tested for >= 8.4 (useless test) or < 8.4 (dead code).  I
also adjusted the version tests to be consistent.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee


Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Add primary keys to system catalogs
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade analyze script