Re: [PATCHES] drop database if exists

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] drop database if exists
Date: 2005-11-24 04:40:55
Message-ID: 200511240440.jAO4etS29580@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Christopher Kings-Lynne wrote:
>
> > here's a patch for "drop database if exists". Barring objections I will
> > apply it in a day or two.
>
> Should we use the IF EXISTS syntax in pg_dump output? For all DROP
> commands in clean mode?

Yes, I was thinking it should be used for pg_dump --clean, which is a
TODO item. I was also thinking the DROP OWNER could be used for
--clean:

o Allow pg_dump --clean to drop roles that own objects or have
privileges

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-11-24 04:47:48 Private email requests
Previous Message Andrew Dunstan 2005-11-24 03:29:43 Re: comment doesn't accept expressions returning text

Browse pgsql-patches by date

  From Date Subject
Next Message Atsushi Ogawa 2005-11-24 12:48:21 Re: Space management for PGresult
Previous Message Tom Lane 2005-11-23 21:22:34 Re: BUG #2056: to_char no long takes time as input?