pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Need to find the no. of connections for a database
Date: Thu, 27 Feb 2020 23:03:18 -0700
Message-ID: <bbe88803-4b16-34a7-255f-81f47bd2823d@gmail.com> (raw)
In-Reply-To: <35e84a26ea748f8f318069fd235d5201b5eb8dfa.camel@gmail.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>
	<72f62e47-689a-351a-a711-6cfb7312d282@wp.pl>
	<1401820409.2680701.1582810637855@mail.yahoo.com>
	<af11c806-4850-8837-b8ca-89614dc4f49f@wp.pl>
	<561727835.2707508.1582813582038@mail.yahoo.com>
	<ad504885-51ed-e356-b821-ec9b73dc0810@wp.pl>
	<1151434427.3100461.1582852216341@mail.yahoo.com>
	<35e84a26ea748f8f318069fd235d5201b5eb8dfa.camel@gmail.com>


On 2/27/20 10:38 PM, rob stone wrote:
>
> If the menu is built from a table in your database, then when
> "Processing report" starts you could set a flag (boolean) against those
> items so that if anybody tried to log-in or access those items, you
> could simply display a message along the lines of "Processing report is
> running. Please try again later".
>
> When "Processing report" finishes, it just clears that flag.
>
> HTH,
> Rob
>

Conversely, the OP could be asking for a way to turn "process report" to 
active state when no one is using the other features: each of them could 
set a lock/counter I guess and when all counters are zero enable process 
button.  The notion of waiting for "all clear" from the app or the db 
before running reports does seem odd though.  Do certain actions from 
the app leave the database in an inconsistent state and break the report 
were it run at the same time?





view thread (14+ messages)  latest in thread

Message-ID: <bbe88803-4b16-34a7-255f-81f47bd2823d@gmail.com>
Permalink:  ../bbe88803-4b16-34a7-255f-81f47bd2823d@gmail.com/
Also on:    postgresql.org/message-id/bbe88803-4b16-34a7-255f-81f47bd2823d@gmail.com

 · 

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: robjsargent@gmail.com
  Subject: Re: Need to find the no. of connections for a database
  In-Reply-To: <bbe88803-4b16-34a7-255f-81f47bd2823d@gmail.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> <72f62e47-689a-351a-a711-6cfb7312d282@wp.pl> <1401820409.2680701.1582810637855@mail.yahoo.com> <af11c806-4850-8837-b8ca-89614dc4f49f@wp.pl> <561727835.2707508.1582813582038@mail.yahoo.com> <ad504885-51ed-e356-b821-ec9b73dc0810@wp.pl> <1151434427.3100461.1582852216341@mail.yahoo.com> <35e84a26ea748f8f318069fd235d5201b5eb8dfa.camel@gmail.com> <bbe88803-4b16-34a7-255f-81f47bd2823d@gmail.com>

* 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