PostgreSQL fatal error: a reserved connection location reserved for Superuser who performs non-replication requests

Source: Internet
Author: User
Tags postgresql

Recent monitoring System database monitoring is always delayed, check the log error:

 --08- - Ten: -: +,534 ERROR Traceback(most recent):  File "oracle_mon.py", line306,inch< module>Update_status (IP,' Stop ', timer.end_date)File "oracle_mon.py", line285,inchUpdate_status Pg.db.update ("Oracle_mon", Where=where, Status=status, Stat_date=status_date)File "/usr/lib/python2.7/site-packages/web/db.py", line881,inchUpdate db_cursor = Self. _db_cursor ()File "/usr/lib/python2.7/site-packages/web/db.py", line566,inch_db_cursorreturn  Self. Ctx.db.cursor ()File "/usr/lib/python2.7/site-packages/web/db.py", line507,inch_getctx Self. _load_context ( Self. _ctx)File "/usr/lib/python2.7/site-packages/web/db.py", line516,inch_load_context ctx.db = Self. _connect_with_pooling ( Self. Keywords)File "/usr/lib/python2.7/site-packages/web/db.py", line970,inch_connect_with_pooling conn =DB. _connect_with_pooling ( Self, keywords)File "/usr/lib/python2.7/site-packages/web/db.py", line563,inch_connect_with_poolingreturn  Self. _pooleddb.connection ()File "/usr/lib/python2.7/site-packages/dbutils-1.1-py2.7.egg/dbutils/pooleddb.py", line331,inchConnection con = Self. Steady_connection ()File "/usr/lib/python2.7/site-packages/dbutils-1.1-py2.7.egg/dbutils/pooleddb.py", line279,inchSteady_connection * Self. _args, * * Self. _kwargs)File "/usr/lib/python2.7/site-packages/dbutils-1.1-py2.7.egg/dbutils/steadydb.py", line134,inchConnect failures, Ping, closeable, *args, **kwargs)File "/usr/lib/python2.7/site-packages/dbutils-1.1-py2.7.egg/dbutils/steadydb.py", line186,inch__init__     Self. _store ( Self. _create ())File "/usr/lib/python2.7/site-packages/dbutils-1.1-py2.7.egg/dbutils/steadydb.py", line the,inch_create con = Self. _creator (* Self. _args, * * Self. _kwargs)File "/usr/lib64/python2.7/site-packages/psycopg2/__init__.py", line179,inchConnect Connection_factory=connection_factory, Async=async)Operationalerror:Fatal error:Reserved connection locations are reserved for super users that perform non-replication requests

The number of active connections found in the database is around 90, while the default maximum number of connections for PG is MAX_CONNECTION=100, which is suspected to be an error in the number of database connections.

The fact is that the old database max_connection=200, and does not use the default 100.

Workaround: Modify the default maximum number of connections in the configuration file (postgresql.conf) max_connection=200, and restart the database.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

PostgreSQL fatal error: a reserved connection location reserved for Superuser who performs non-replication requests

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.