Re: Chatter on DROP SOMETHING IF EXISTS

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Chatter on DROP SOMETHING IF EXISTS
Date: 2007-02-08 18:54:13
Message-ID: 8075.1170960853@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> I'm honestly looking for some practical use of this. We have debated
> other NOTICE messages over the years, but they at least tell you
> something you can use after the command.

The objection I had to the original patch (which didn't return a notice)
was that this seemed actively misleading:

foo=> DROP TABLE IF EXISTS not_there;
DROP TABLE
foo=>

I would be satisfied if the returned command tag were something else,
maybe "NO OPERATION".

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2007-02-08 18:59:01 Re: FreeBSD 6.2 ./configure plays oddly when building 8.2.2 from tarball
Previous Message Marc Munro 2007-02-08 18:50:18 Re: referential Integrity and SHARE locks