Re: dropdb --force - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: dropdb --force
Date
Msg-id d659cb43-9c08-4921-cb74-84252f5348f6@2ndquadrant.com
Whole thread Raw
In response to Re: dropdb --force  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: dropdb --force
Re: dropdb --force
List pgsql-hackers
On 2019-09-26 17:35, Alvaro Herrera wrote:
> Well, you would have one of those:
> 
> DROP DATABASE [IF EXISTS] name WITH (FORCE)
> DROP DATABASE [IF EXISTS] name
> 
> Naturally, the WITH is optional in the sense that the clause itself is
> optional.  (Note we don't have CASCADE/RESTRICT in DROP DATABASE.)

The WITH here seems weird to me.  Why not leave it out?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: PostgreSQL12 and older versions of OpenSSL
Next
From: legrand legrand
Date:
Subject: Re: Hooks for session start and end, take two