Read the current memory and connection shape
Memory sizing has to account for shared memory, OS cache, and per-query memory multiplied by concurrency.
SELECT name, setting, unit
FROM pg_settings
WHERE name IN ('max_connections','shared_buffers','work_mem','maintenance_work_mem','effective_cache_size')
ORDER BY name;