The following bug has been logged on the website:
Bug reference: 8532
Logged by: Timo Gurr
Email address: timo.gurr@gmail.com
PostgreSQL version: 9.1.10
Operating system: Gentoo Linux (64bit, kernel 3.11.0, glibc 2.17)
Description:
>From the timezone-data NEWS:
Release 2013e - 2013-09-19 23:50:04 -0700
Changes affecting the build procedure
When building the 'posix' or 'right' subdirectories, if the
subdirectory would be a copy of the default subdirectory, it is
now made a symbolic link if that is supported. This saves about
2 MB of file system space.
This change breaks postgres, so then having a recent enough timezone-data
package installed on the system postgres fails to start:
/var/lib/postgresql/9.1/data/postmaster.log
FATAL: Â exceeded maxAllocatedDescs (16) while trying to open directory
"/usr/share/zoneinfo"
# ls -la /usr/share/zoneinfo/
lrwxrwxrwx 1 root root 1 Oct 16 12:06 posix -> .
Gentoo has a downstream bugreport about it stating the problem should be
fixed on the postgres side:
https://bugs.gentoo.org/show_bug.cgi?id=486556
Also found on the net:
http://blog.endpoint.com/2013/06/debugging-obscure-postgres-problems.html
The mentioned workaround by manually removing the symlink lets postgres
start fine again.