Re: Truncate if exists - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Truncate if exists
Date
Msg-id CA+U5nM+L3O+7CEJ5+U=U5dgNFf86giss=4Ji9-Y-XAWs9tDbSQ@mail.gmail.com
Whole thread Raw
In response to Re: Truncate if exists  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Truncate if exists  (Daniel Farina <daniel@heroku.com>)
List pgsql-hackers
On 9 October 2012 21:35, Peter Eisentraut <peter_e@gmx.net> 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?

I'm not involved in the planning or justification for this patch, and
have no opinion.

I discussed applying it because it was an uncontentious patch. It
clearly is not....

-- Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Gavin Flower
Date:
Subject: Re: Truncate if exists
Next
From: Daniel Farina
Date:
Subject: Re: Truncate if exists