[Pkg-postgresql-public] Bug#719282: installing dictionary package restarts postgresql servers

Christoph Berg myon at debian.org
Mon Aug 12 08:53:33 UTC 2013


Control: retitle -1 installing dictionary package appears to restart postgresql

Re: Peter Eisentraut 2013-08-10 <20130810015034.11992.95565.reportbug at vanquo.pezone.net>
> Installing a dictionary package, for example apt-get install
> hunspell-de-de, ends up restarting all PostgreSQL servers on the
> machine, because the dictionary trigger calls postinst, which restarts
> everything because of the way debhelper sets this up.  I think that's
> a fairly radical reaction.
> 
> This might be more general problem.  Maybe a fix in debhelper is
> needed?

Hi Peter,

we have already applied the "dh_installinit -r" fix in
postgresql-common's debian/rules file. Unfortunately it still looks
like the servers are (re)started, while in fact only "start" is
invoked, so running servers are not affected:

Entpacken von hunspell-fr (aus .../hunspell-fr_1%3a3.3.0-4_all.deb) ...
Trigger für postgresql-common werden verarbeitet ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
  de_de
  en_us
  fr
Removing obsolete dictionary files:
[ ok ] Starting PostgreSQL 9.1 database server: main.
hunspell-fr (1:3.3.0-4) wird eingerichtet ...

postgresql-9.1-main.log confirms the running server is not restarted.

It might be smarter just to do nothing with the servers here, or just
invoke "reload", if necessary. (Or at least show a less frightening
output on the console.)

Christoph
-- 
cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20130812/3e342f26/attachment.sig>


More information about the Pkg-postgresql-public mailing list