Re: smart shutdown at end of transaction (was: Default mode for shutdown) - Mailing list pgsql-hackers

From Greg Stark
Subject Re: smart shutdown at end of transaction (was: Default mode for shutdown)
Date
Msg-id CAM-w4HN7+zqK4rveK=eUWaM2HVbBCwD5zbzYxNMOhWaT0gEBQg@mail.gmail.com
Whole thread Raw
In response to Re: smart shutdown at end of transaction (was: Default mode for shutdown)  (Wolfgang Wilhelm <wolfgang20121964@yahoo.de>)
List pgsql-hackers
On Mon, Apr 30, 2012 at 9:55 AM, Wolfgang Wilhelm
<wolfgang20121964@yahoo.de> wrote:
> Just for the ones interested in a view on another turf:
>
> In Oracle "shutdown immediate" is the fastest _clean_ shutdown and "shutdown
> abort" is equal to "shutdown immediate" in PG.
> The other modes are called "shutdown normal" and "shutdown transactional".

Though the behaviour users see is quite different. In Oracle the
fastest clean shutdown still requires rolling back transactions which
can take a long time. In Postgres rolling back transactions is
instantaneous so a shutdown immediate will appear to behave like a
shutdown abort in Oracle in that it will always run fast even if the
effect on the database is different.


-- 
greg


pgsql-hackers by date:

Previous
From: Atri Sharma
Date:
Subject: Re: Future In-Core Replication
Next
From: Alvaro Herrera
Date:
Subject: Re: [PATCH] Allow breaking out of hung connection attempts