Respect the max shared mem lists for postgresql.  Issue #597