Re: Truncate if exists - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: Truncate if exists
Date
Msg-id m2pq4nzlpu.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: Truncate if exists  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> This strikes me as just highly un-SQL-like.

+1

> I tend to agree with Noah's comment upthread:
>
>> But the syntax is a bandage for raw psql input remaining a hostile
>> environment for implementing the full range of schema changes.  Switch to
>> submitting your SQL from a richer programming environment, and these additions
>> to core syntax cease to add much.

I think the comment is generally true, but fails in the face of the
simplicity of this particular grammar addition. Also, I have the same
problem as Sébastien to understand Tom's usage example.

Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Truncate if exists
Next
From: Dimitri Fontaine
Date:
Subject: Re: Deparsing DDL command strings