ปัญหา psql: FATAL: too many connections for role "user_name".
ปัญหามาจาก การตั้ง config ของ postgresql ไว้น้อยเกินไป
ทางแก้คือปรับ config ทำได้ตังนี้
สำหรับ Ubuntu
ปรับเติม max_connection และ shared_buffers
แก้ไขไฟล์
ปรับเพิ่ม max_connection, shared_buffers ตามความเหมาะสมของ Server เรา
เสร็จแล้ว restart postgresql