Re: [PATCH] rename column if exists

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: [PATCH] rename column if exists
Дата
Msg-id 628FE4FA-01E1-4C6C-8061-343B920AF19E@yesql.se
обсуждение исходный текст
Ответ на [PATCH] rename column if exists  (David Oksman <oksman.dav@gmail.com>)
Ответы Re: [PATCH] rename column if exists  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-hackers
> On 22 Mar 2021, at 20:40, David Oksman <oksman.dav@gmail.com> wrote:
>
> Added the ability to specify IF EXISTS when renaming a column of an object (table, view, etc.).
> For example: ALTER TABLE distributors RENAME COLUMN IF EXISTS address TO city;
> If the column does not exist, a notice is issued instead of throwing an error.

What is the intended use-case for RENAME COLUMN IF EXISTS?  I'm struggling to
see when that would be helpful to users but I might not be imaginative enough.

--
Daniel Gustafsson        https://vmware.com/




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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Printing backtrace of postgres processes
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: [PATCH] More docs on what to do and not do in extension code