Add max shared memory setting for PostgreSQL