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

Поиск
Список
Период
Сортировка
Искать
От
Peter J. Holzer
Тема
Re: Need to find the no. of connections for a database
Дата
Msg-id
20200227100732.GB22375@hjp.at
Ответ на
Список
Дерево обсуждения
Re: Need to find the no. of connections for a database "sivapostgres@yahoo.com" <sivapostgres@yahoo.com>
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>
Re: Need to find the no. of connections for a database "sivapostgres@yahoo.com" <sivapostgres@yahoo.com>
Re: Need to find the no. of connections for a database "Ireneusz Pluta/wp.pl" <ipluta@wp.pl>
Re: Need to find the no. of connections for a database "sivapostgres@yahoo.com" <sivapostgres@yahoo.com>
Re: Need to find the no. of connections for a database "Ireneusz Pluta/wp.pl" <ipluta@wp.pl>
Re: Need to find the no. of connections for a database "sivapostgres@yahoo.com" <sivapostgres@yahoo.com>
Re: Need to find the no. of connections for a database "Ireneusz Pluta/wp.pl" <ipluta@wp.pl>
Re: Need to find the no. of connections for a database "sivapostgres@yahoo.com" <sivapostgres@yahoo.com>
Re: Need to find the no. of connections for a database rob stone <floriparob@gmail.com>
Re: Need to find the no. of connections for a database Rob Sargent <robjsargent@gmail.com>
Re: Need to find the no. of connections for a database "sivapostgres@yahoo.com" <sivapostgres@yahoo.com>
Re: Need to find the no. of connections for a database Ravi Krishna <srkrishna@gmx.com>
On 2020-02-27 07:41:36 +0000, sivapostgres@yahoo.com wrote:
> 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.

Do you have control over those reports or are they generated by a
third-party tool?

If the former, the best way is probably to just run them all in a single
REPEATABLE READ transaction. Then they will all reflect the state of the
database at the start of the transaction, regardless of what other
clients are doing in the meantime.

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"
В списке pgsql-general по дате отправления
От: Peter J. Holzer
Дата:
От: Ravi Krishna
Дата:
FAQ