pgsql: Handle EPERM in pg_numa_init

2025-11-20 Thread Tomas Vondra
Handle EPERM in pg_numa_init When running in Docker, the container may not have privileges needed by get_mempolicy(). This is called by numa_available() in libnuma, but versions prior to 2.0.19 did not expect that. The numa_available() call seemingly succeeds, but then we get unexpected failures w

pgsql: Handle EPERM in pg_numa_init

2025-11-20 Thread Tomas Vondra
Handle EPERM in pg_numa_init When running in Docker, the container may not have privileges needed by get_mempolicy(). This is called by numa_available() in libnuma, but versions prior to 2.0.19 did not expect that. The numa_available() call seemingly succeeds, but then we get unexpected failures w