I can reproduce the bug by installing wheezy, starting postgres and
upgrading libc6(2.13 to 2.19). After that peer authentication does not
longer work.

logfile says: "local user with ID 110 does not exist"

It looks like getpwuid() is broken after the libc6 upgrade.
In postgresql/src/backend/libpq/auth.c:1793 the function getpwuid(uid)
returns NULL and triggers the error message.


A really simple solution should be to add the following line to
"eglibc/debian/libc.postinst:102".

check="$check postgresql-8.4 postgresql-9.1 postgresql-9.2 postgresql-9.3"

This leads to a restart of postgres after an libc6 upgrade and fixes the
problem.
It should not be necessary for smaller changes and bug fixes. So it
would be ok to trigger a restart only by performing major upgrades.

Should restarting postgres be the default after any libc6 upgrade or is
there a better way? (I do not mind to restart it)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to