Re: Need to find the no. of connections for a database

From: "sivapostgres(at)yahoo(dot)com" <sivapostgres(at)yahoo(dot)com>
To: Postgresql General Group <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Need to find the no. of connections for a database
Date: 2020-02-27 07:41:36
Message-ID: 1393516227.2562442.1582789296867@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 AlwaysBKR Sivaprakash

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter J. Holzer 2020-02-27 10:01:02 Re: How to install check_postgres on CentOS 8?
Previous Message Tom Lane 2020-02-26 23:35:06 Re: information_schema performance in Postgres 12