Re: Need to find the no. of connections for a database - Mailing list pgsql-general

From sivapostgres@yahoo.com
Subject Re: Need to find the no. of connections for a database
Date
Msg-id 1393516227.2562442.1582789296867@mail.yahoo.com
Whole thread Raw
Responses Re: Need to find the no. of connections for a database  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
Re: Need to find the no. of connections for a database  (Ravi Krishna <srkrishna@gmx.com>)
List pgsql-general
Hello,

Before taking a few reports, we need to ensure that only one connection is made to the database and all other computers need to close the connection to that database.   This is to prevent any additional entry(ies) that could be made during the course of the report taking.  This single-user mode is to be there till the report is taken and few entries are passed.  

How to do it?    Is it possible to switch to single-user mode from application and back to multi-user mode once the work is completed?  Or any other solution available?

Happiness Always
BKR Sivaprakash


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: information_schema performance in Postgres 12
Next
From: "Peter J. Holzer"
Date:
Subject: Re: How to install check_postgres on CentOS 8?