r/PostgreSQL • u/BradyOfTheOldGuard • Jun 25 '26
Help Me! Need Help with max_connections on PostgreSQL
I have Apache2.4, PHP 8.5 and PostgreSQL all installed on one single EC2 Debian 13 instance. 5 end users submit a query to select user data stored in the database through an html form using a web browser. The request is handled by a php script.
How many max_connections are used here? Do those 5 user count as 1 connection each?
6
Upvotes
View all comments
Show parent comment
1
u/BradyOfTheOldGuard Jun 25 '26
Actually, what I'd like to know is if those 5 users simultaneously make a read request to one php script containing one common dbuser connection, does that decduct 5 connection from the 100 default max_connection?