Re: patch: ALTER TABLE IF EXISTS

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: patch: ALTER TABLE IF EXISTS
Дата
Msg-id 0390cf80a919431190f5e23710388a60.squirrel@sq.gransy.com
обсуждение исходный текст
Ответ на patch: ALTER TABLE IF EXISTS  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: patch: ALTER TABLE IF EXISTS  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
On 2 Leden 2012, 14:11, Pavel Stehule wrote:
> Hello
>
> this is relative simple patch that add possibility to skip noexisting
> tables. It is necessary for silent cleaning when dump is loaded.

Just a curious question - what use case is solved by this? Under what
circumstances you get an ALTER TABLE without a preceding CREATE TABLE? I
can't think of such scenario ...

Or is this meant for scripts written manually so that it's possible to do
alter if the table already exists and create if it does not exist?

Tomas



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: patch: ALTER TABLE IF EXISTS
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: patch: ALTER TABLE IF EXISTS