Re: [PATCH] rename column if exists

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [PATCH] rename column if exists
Дата
Msg-id CAKFQuwZCG8sJZ-X78n1qmoE+EP7M-mjNfFvSop-VUiOcQTQRdA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] rename column if exists  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [PATCH] rename column if exists  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Friday, November 5, 2021, Tom Lane <tgl@sss.pgh.pa.us> wrote:
I'd be more willing to overlook that if a clear use-case had been
given, but AFAICS no concrete case has been offered.


The use case is the exact same one for all of these - indempotence, especially in the face of being able to run migration scripts starting at a point in the past and still having the final outcome be the same (or error if there is a fundamental conflict in the history).  It’s the same argument used for why our current implementation of create [type] if not exists is broken in how it deals with schemas.

David J.

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

Предыдущее
От: Mark Dilger
Дата:
Сообщение: Re: pg14 psql broke \d datname.nspname.relname
Следующее
От: Robert Haas
Дата:
Сообщение: Re: should we enable log_checkpoints out of the box?