Re: Hot Standby and DROP DATABASE - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Hot Standby and DROP DATABASE
Date
Msg-id 1265561344.27207.35.camel@ebony
Whole thread Raw
In response to Re: Hot Standby and DROP DATABASE  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Sat, 2010-02-06 at 17:32 +0100, Andres Freund wrote:
> > 
> > So it seems at least the behavior is quite different from what the
> > docs stats. Am I missing something here?
> Its a small bug/typo in standby.c:ResolveRecoveryConflictWithDatabase
> 
> The line:
>         CancelDBBackends(dbid, PROCSIG_RECOVERY_CONFLICT_TABLESPACE, true);
> 
> has to be
>         CancelDBBackends(dbid, PROCSIG_RECOVERY_CONFLICT_DATABASE, true);

Well spotted, thanks for the report and the analysis.

The code for drop database worked when committed but it looks like the
re-factoring of the code broke it. Will fix.

-- Simon Riggs           www.2ndQuadrant.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Precedence of Postfix operators
Next
From: Simon Riggs
Date:
Subject: Re: pg_class has no toast table?