Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410647 - dev-db/pgbouncer - add new option "upgrade" in init.d script
Summary: dev-db/pgbouncer - add new option "upgrade" in init.d script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Johan Bergström
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 419171
  Show dependency tree
 
Reported: 2012-04-03 11:35 UTC by Marcin Mirosław
Modified: 2013-01-14 17:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pgbouncer.initd (pgbouncer.initd,925 bytes, text/plain)
2013-01-03 02:35 UTC, Johan Bergström
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2012-04-03 11:35:23 UTC
Pgbouncer is able to do online upgrade (like e.g. nginx). Here is info about it: http://pgbouncer.projects.postgresql.org/doc/faq.html#_how_to_upgrade_pgbouncer_without_dropping_connections

It's enough to start new process with added new swith "-R" to do upgrade.
Comment 1 Johan Bergström 2012-04-03 20:37:17 UTC
I've experienced issues with this (crashing, not working properly and whatnot), so that's why I chose to leave it outside for now. I can't say those were within the last two releases, and my personal reason't aren't really valid for more than me.I'll update the init script to add this, thanks.
Comment 2 Marcin Mirosław 2012-04-03 21:39:31 UTC
Hmm, once time pgbouncer -R (version 1.5) didn't detach from terminal. I couldn't reproduce it, i assumed it was accident. But it seems "upgrade" isn't perfect stable.
Comment 3 Johan Bergström 2013-01-03 02:35:08 UTC
Created attachment 334118 [details]
pgbouncer.initd

This new init script adds support for upgrade. It also fixes bug 410645.
Comment 4 Sergey Popov gentoo-dev 2013-01-14 17:26:56 UTC
+  14 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> files/pgbouncer.initd:
+  Update initscript, fix bugs #410645 and #410647, thanks to Johan Bergström