Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j7Ika-0004jT-9f for pgsql-general@arkaria.postgresql.org; Thu, 27 Feb 2020 12:58:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j7IkZ-0006BX-4V for pgsql-general@arkaria.postgresql.org; Thu, 27 Feb 2020 12:58:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j7IkY-0006BQ-IU for pgsql-general@lists.postgresql.org; Thu, 27 Feb 2020 12:58:46 +0000 Received: from mx4.wp.pl ([212.77.101.11]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j7IkV-0000gE-DL for pgsql-general@postgresql.org; Thu, 27 Feb 2020 12:58:45 +0000 Received: (wp-smtpd smtp.wp.pl 13854 invoked from network); 27 Feb 2020 13:58:39 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1582808319; bh=bsv7T2PnDOPvhYQOmbMvCeMH9FR3M0NJjejj70pSKSo=; h=Subject:To:From; b=i/sdc1E/AXnxDR8Xpt93V0aR+p1aBRUEjEH/grTT9zpNyAtnyyridNr5A0XQPyGlL ZG5FiVQeYfrR5lKvg1hUuAkjXf+KIA/S+l0XLSNPLfYE3gHGta83DB7fcqAIaGSoWB /VtnxySMNK8vkbrkP15y18kFRrfIOELhLAyYlzVg= Received: from 78-11-36-98.cmr.net.pl (HELO [192.168.1.226]) (ipluta@wp.pl@[78.11.36.98]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 27 Feb 2020 13:58:39 +0100 Subject: Re: Need to find the no. of connections for a database To: "sivapostgres@yahoo.com" , Pgsql-general General References: <1393516227.2562442.1582789296867.ref@mail.yahoo.com> <1393516227.2562442.1582789296867@mail.yahoo.com> <1654972450.2631031.1582803351218@mail.yahoo.com> From: "Ireneusz Pluta/wp.pl" Message-ID: <72f62e47-689a-351a-a711-6cfb7312d282@wp.pl> Date: Thu, 27 Feb 2020 13:58:34 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <1654972450.2631031.1582803351218@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: pl X-WP-MailID: 2739fe0a12efc50b26f5c467b975bb97 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000009 [0IOk] List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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