Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Facebook
Downloads
Home
>
mailing lists
How to automatically delete idle client connections? - Mailing list pgsql-general
From
Yu Watanabe
Subject
How to automatically delete idle client connections?
Date
June 21, 2021
09:58:57
Msg-id
CALKrq=k_QWHBWtDwmE-95mKC8FNX9wOz=1zJMRVwVeLhkRRLGg@mail.gmail.com
Whole thread
Raw
Responses
Re: How to automatically delete idle client connections?
List
pgsql-general
Tree view
Dear community.
I would like to ask a question regarding the below error occurred when using psql client.
My environment is postgresql 12.3 docker container.
https://hub.docker.com/layers/postgres/library/postgres/12.3/images/sha256-23839ca029051ca19072dc7f40b252ae8cbcd7ef632f7b8e2da09ba3abc60214?context=explore
###
psql: error: could not connect to server: FATAL remaining connection slots are reserved for non-replication superuser connections
###
It seems that this is caused by unused psql client sessions. Which was caused by closing the terminal without exiting the psql session correctly.
###
postgres=# select usename,state,client_port from pg_stat_activity;
usename | state | client_port
----------+--------+-------------
| |
postgres | |
catseye | idle | -1
catseye | idle | 36718
catseye | idle | -1
catseye | idle | 52960
catseye | idle | 40854
...
###
I have tried setting
idle_in_transaction_session_timeout
, however, this does not delete idle sessions.
Would there be any expiry settings to delete client idle sessions automatically ?
My apology if this question was asked before but I appreciate it if someone gives me advice.
Best Regards,
Yu Watanabe
--
Yu Watanabe
linkedin:
www.linkedin.com/in/yuwatanabe1/
twitter:
twitter.com/yuwtennis
pgsql-general
by date:
Previous
From:
Avi Weinberg
Date:
21 June 2021, 08:24:07
Subject:
Is it Possible to Rename Replication Slot + Can Publisher be Paused
Next
From:
David Rowley
Date:
21 June 2021, 10:17:48
Subject:
Re: How to automatically delete idle client connections?
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
I confirm that I have read and accepted PostgresPro’s
Privacy Policy
.
I agree to get Postgres Pro discount offers and other marketing communications.
✖
×
×
Everywhere
Documentation
Mailing list
List:
all lists
pgsql-general
pgsql-hackers
buildfarm-members
pgadmin-hackers
pgadmin-support
pgsql-admin
pgsql-advocacy
pgsql-announce
pgsql-benchmarks
pgsql-bugs
pgsql-chat
pgsql-cluster-hackers
pgsql-committers
pgsql-cygwin
pgsql-docs
pgsql-hackers-pitr
pgsql-hackers-win32
pgsql-interfaces
pgsql-jdbc
pgsql-jobs
pgsql-novice
pgsql-odbc
pgsql-patches
pgsql-performance
pgsql-php
pgsql-pkg-debian
pgsql-pkg-yum
pgsql-ports
pgsql-rrreviewers
pgsql-ru-general
pgsql-sql
pgsql-students
pgsql-testers
pgsql-translators
pgsql-www
psycopg
Period
anytime
within last day
within last week
within last month
within last 6 months
within last year
Sort by
date
reverse date
rank
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
By continuing to browse this website, you agree to the use of cookies. Go to
Privacy Policy
.
I accept cookies