Re: Truncate if exists - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Truncate if exists
Date
Msg-id 5078A00E.5080106@agliodbs.com
Whole thread Raw
In response to Re: Truncate if exists  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On 10/12/12 3:49 PM, Greg Stark wrote:
> TRUNCATE IF EXISTS foo;
> CREATE IF NOT EXISTS foo...

Thing is, this can be written:

CREATE IF NOT EXISTS foo ...
TRUNCATE foo;

For the exact same result.

So, based on all of the objections and discussion on this feature, I
personally no longer support it.

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



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Truncate if exists
Next
From: Josh Berkus
Date:
Subject: Re: Successor of MD5 authentication, let's use SCRAM