Re: [HACKERS] postgres 9.6.2 update breakage

Поиск
Список
Период
Сортировка
От Roel Janssen
Тема Re: [HACKERS] postgres 9.6.2 update breakage
Дата
Msg-id 87fug6wr74.fsf@gnu.org
обсуждение исходный текст
Ответ на Re: [HACKERS] postgres 9.6.2 update breakage  (Jan Nieuwenhuizen <janneke@gnu.org>)
Ответы Re: [HACKERS] postgres 9.6.2 update breakage  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
Jan Nieuwenhuizen writes:

> Roel Janssen writes:
>
>> So, it would be something like:
>> postgres pg_upgrade \
>> ...
>
> It's great to have a recipe `that works', so thanks!
>
> However, whether or not we automate this, I cannot help to wonder if
> we should support downgrading -- at least to the previous version
> in this case?
>
> If I'm not mistaken, everything else in GuixSD will run if I select a
> previous system generation in Grub...except for this?
>
> Is involving postgres developers an option, I'm sure a least one of
> the postgresql hackers[cc] are already looking at Guix[SD]?
>
> Greetings,
> janneke

Ah yes, I see the point.  The problem here is that when new features are
added to PostgreSQL, and you rely upon them in your database schemas,
downgrading will most likely cause loss of information.

Maybe we need a wrapper script that also makes a dump of all of the
data?  Now that could become a security hole.

Or the wrapper script warns about this situation, and recommends making
a (extra) back-up of the database before upgrading.

Or.. the upgrade is something a user should do explicitly, basically
giving up on the "just works" concept.  Guix already provides a nice way
to get the previous version of the exact binaries used before the
upgrade.

Kind regards,
Roel Janssen




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

Предыдущее
От: Amit Langote
Дата:
Сообщение: [HACKERS] NOT NULL constraints on range partition key columns
Следующее
От: tushar
Дата:
Сообщение: [HACKERS] Create publication syntax is not coming properly in pg_dump /pg_dumpall