From: | Heikki Linnakangas <heikki(at)enterprisedb(dot)com> |
---|---|
To: | Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
Cc: | Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Improve shutdown during online backup |
Date: | 2008-04-07 14:30:29 |
Message-ID: | 47FA3005.5070108@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Albe Laurenz wrote:
> Moreover, if Shutdown == SmartShutdown, new connections won't be accepted,
> and nobody can connect and call pg_stop_backup().
> So even if I'd add a check for
> (pmState == PM_WAIT_BACKENDS) && !BackupInProgress() somewhere in the
> ServerLoop(), it wouldn't do much good, because the only way for somebody
> to cancel online backup mode would be to manually remove the file.
Good point.
> So the only reasonable thing to do on smart shutdown during an online
> backup is to have the shutdown request fail, right? The only alternative being
> that a smart shutdown request should interrupt online backup mode.
Or we can add another state, PM_WAIT_BACKUP, before PM_WAIT_BACKENDS,
that allows new connections, and waits until the backup ends.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2008-04-07 14:36:37 | problem with locks on head, backend crash |
Previous Message | Tom Lane | 2008-04-07 14:25:05 | Re: [HACKERS] Database owner installable modules patch |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Dunstan | 2008-04-07 14:39:08 | Re: [HACKERS] Database owner installable modules patch |
Previous Message | Tom Lane | 2008-04-07 14:25:05 | Re: [HACKERS] Database owner installable modules patch |