pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ireneusz Pluta/wp.pl <ipluta@wp.pl>
To: sivapostgres@yahoo.com <sivapostgres@yahoo.com>
To: Pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: Need to find the no. of connections for a database
Date: Thu, 27 Feb 2020 13:58:34 +0100
Message-ID: <72f62e47-689a-351a-a711-6cfb7312d282@wp.pl> (raw)
In-Reply-To: <1654972450.2631031.1582803351218@mail.yahoo.com>
References: <1393516227.2562442.1582789296867.ref@mail.yahoo.com>
	<1393516227.2562442.1582789296867@mail.yahoo.com>
	<C06A448C-51BC-43B9-A0CF-558F28E0090E@gmx.com>
	<1654972450.2631031.1582803351218@mail.yahoo.com>

W dniu 2020-02-27 o 12:35, sivapostgres@yahoo.com pisze:
> I need to prevent other users from entering any transaction till I finish taking reports from my 
> application.  All users will be using the same application, from which this report is supposed to 
> be printed.
>
maybe advisory lock is what you need?

https://www.postgresql.org/docs/current/explicit-locking.html#ADVISORY-LOCKS






view thread (14+ messages)  latest in thread

Message-ID: <72f62e47-689a-351a-a711-6cfb7312d282@wp.pl>
Permalink:  ../72f62e47-689a-351a-a711-6cfb7312d282@wp.pl/
Also on:    postgresql.org/message-id/72f62e47-689a-351a-a711-6cfb7312d282@wp.pl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ipluta@wp.pl, sivapostgres@yahoo.com
  Subject: Re: Need to find the no. of connections for a database
  In-Reply-To: <72f62e47-689a-351a-a711-6cfb7312d282@wp.pl>
  References: <1393516227.2562442.1582789296867.ref@mail.yahoo.com> <1393516227.2562442.1582789296867@mail.yahoo.com> <C06A448C-51BC-43B9-A0CF-558F28E0090E@gmx.com> <1654972450.2631031.1582803351218@mail.yahoo.com> <72f62e47-689a-351a-a711-6cfb7312d282@wp.pl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox