Re: Truncate if exists

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Truncate if exists
Дата
Msg-id 5075A8E2.7010103@agliodbs.com
обсуждение исходный текст
Ответ на Re: Truncate if exists  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Truncate if exists
Список pgsql-hackers
On 10/9/12 1:35 PM, Peter Eisentraut wrote:
> On 10/9/12 5:09 AM, Simon Riggs wrote:
>> Anyone want to check for any other missing IF EXISTS capability in other DDL?
> 
> TRUNCATE is not really DDL.  If we allow TRUNCATE IF EXISTS, what is
> stopping someone from requesting DELETE IF EXISTS or INSERT IF EXISTS next?

That's a very good point.  I tend to think of all utility commands as
DDL, which of course they're not.


-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Is there a good reason why PL languages do not support cstring type arguments and return values ?
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: PQping command line tool