Truncate if exists

Поиск
Список
Период
Сортировка
От Sébastien Lardière
Тема Truncate if exists
Дата
Msg-id 5073E153.102@hi-media.com
обсуждение исходный текст
Ответы Re: Truncate if exists  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
Hi,

With the help of Cédric, here's a patch changing the TRUNCATE TABLE
command, adding the IF EXISTS option to allow the presence in the list
of tables of a missing or invisible table.

This meets the needs of scripts that should be run in different stages,
and do not always have the same visibility on the tables, as well as
DROP TABLE. Rather than rollback the entire TRUNCATE or transaction, we
prefer to ignore the absence of the table.

It is a small patch which changes very little code, but that could be
quite useful.

Regards,

--
Sébastien Lardière
PostgreSQL DBA Team Manager
Hi-Media

Вложения

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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Deparsing DDL command strings
Следующее
От: Shigeru HANADA
Дата:
Сообщение: Re: Move postgresql_fdw_validator into dblink