Re: Chatter on DROP SOMETHING IF EXISTS

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: David Fetter <david(at)fetter(dot)org>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Chatter on DROP SOMETHING IF EXISTS
Date: 2007-02-07 19:23:20
Message-ID: 20070207192320.GA23486@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Feb 07, 2007 at 10:53:34 -0800,
David Fetter <david(at)fetter(dot)org> wrote:
> On Wed, Feb 07, 2007 at 02:13:48PM +0100, Peter Eisentraut wrote:
> > What is the practical purpose of the notices emitted by DROP
> > SOMETHING IF EXISTS when the object in fact does not exist?
>
> DROP ... IF EXISTS is guaranteed not to throw an error. This lets
> people write idempotent scripts which run in a transaction :)

I don't think that's what his question was. I think it was more along the
lines of why don't we get rid of the notices that are just cluttering things
up.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-02-07 19:30:30 Re: Status of autovacuum and the sporadic stats failures ?
Previous Message Neil Conway 2007-02-07 19:20:09 Re: Ooops ... seems we need a re-release pronto