Re: syntax for drop if exists - Mailing list pgsql-hackers

From Tom Lane
Subject Re: syntax for drop if exists
Date
Msg-id 1221.1131938258@sss.pgh.pa.us
Whole thread Raw
In response to syntax for drop if exists  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: syntax for drop if exists
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> The MySQL syntax is actually "drop table if exists foo ...". 
> Implementing this unfortunately generates a shift/reduce conflict, 

What did you try exactly?  I don't see any fundamental reason for
a conflict here.  You may just need to rearrange the grammar to postpone
the reduction a bit.

> Or we could live with the conflict,

Utterly unacceptable; see previous discussions.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: MERGE vs REPLACE
Next
From: Tom Lane
Date:
Subject: Re: forcing returned values to be binary