Re: syntax for drop if exists

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: syntax for drop if exists
Date: 2005-11-14 03:17:38
Message-ID: 1221.1131938258@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Dunstan <andrew(at)dunslane(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-11-14 03:21:06 Re: forcing returned values to be binary
Previous Message Martijn van Oosterhout 2005-11-13 22:56:43 Re: MERGE vs REPLACE