Fix a memory problem with PostgreSQL on some Docker configurations