Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v6Wvx-005zzG-Td for pgsql-general@arkaria.postgresql.org; Wed, 08 Oct 2025 16:22:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v6Wvv-00BNsP-NJ for pgsql-general@arkaria.postgresql.org; Wed, 08 Oct 2025 16:22:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v6Wvu-00BNsC-T5 for pgsql-general@lists.postgresql.org; Wed, 08 Oct 2025 16:22:32 +0000 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1v6Wvt-000hMr-03 for pgsql-general@lists.postgresql.org; Wed, 08 Oct 2025 16:22:30 +0000 Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id 8FF66EC020D; Wed, 8 Oct 2025 12:22:28 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Wed, 08 Oct 2025 12:22:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1759940548; x=1760026948; bh=FSps08VNJlZiSUGAUro2DwHx83qZOBWbI2fw5DJw5gU=; b= Vznr+w8xiZEWH1sn1NjTKOm36BMWvmozON7r1j79s2++sUaxh+TA/v2bTXtuy5cT x3Up/2vwKIdwMb8AP/YPKGdQOYEn2dBNghok1p3LRx2cKdEZxBD5T1Be/mcPKpqY V+nKgQgukYknaDnfpuPMr6NpY6gEzL3l/1y5NvV7LKv9s8cOx/TYzVm+u2ukVs2H FJ2DLXLjHPmHbCy2zgJdCc61UyD+xpLfUJSzW2hc83anttwO6VKN3JXVSt9D3FYl G18ul15gSQ6/zcaJA8pfa4ZjqS6ZPRsVvKvXZaCFp4JKXtvpidVg/FCIKLMaKYPF V4FqtWIKaN08z/oALzxZFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1759940548; x=1760026948; bh=F Sps08VNJlZiSUGAUro2DwHx83qZOBWbI2fw5DJw5gU=; b=J8Xv2lvdy1Jk4Gtgf xQbjvnFZNuzEcQuuAm/xdMGfX1r7N1mUHIwHwbgKsI53wWTayWVt8NaXZNIaqSl6 ANLxc/JyzKTfdOWHpmg7fEWK6AAZ/Cg0gQMaPOyKEThGjRDy2Zo6EN9b28DPSR0L CnQRHa66QR+GkivWA/EZ2QSThXAjd57PcqQMfn/DhC4QTNLEpXa+C5gw6PgAjQ7g 3fG4EOvPYFQeIwn4CrfcLx5Ki2fq1Hycx3BIRrtohR5/ecLi59LTL/xu6V1mDKFb 6ZrgXWG1V3E8XXBBcl1A07mKQFSvNFkniN2tiuUGli1iOpDZqj+sbpWh1LCf2Xvk Jeo3Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddutdefjeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertd dtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepleegveekkeekue eigfdtveeileeuhfefudefteekjeffkeejueejheegheegkedtnecuffhomhgrihhnpehp ohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm pdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehsuh gushdugeefgeesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghr rghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Oct 2025 12:22:27 -0400 (EDT) Message-ID: <9f175444-6bfc-4c6e-a609-e552d85c45a1@aklaver.com> Date: Wed, 8 Oct 2025 09:22:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Alerting on memory use and instance crash To: sud , pgsql-general References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/8/25 08:42, sud wrote: > Hi Experts, > > It's postgres version 16. I have two questions on alerting as below. > > 1)If we want to have alerting on any node/instance that gets crashed :- > In other databases like Oracle the catalog Views like "GV$Instance" used > to give information on whether the instances are currently active/down > or not. But in postgres it seems all the pg_* views are instance > specific and are not showing information on the global/cluster level but > are restricted to instance level only. So is there any other way to > query the pg_* views to haveĀ alerts on the specific instance crash? 1) When you say instance do you mean database? 2) Not all system tables/views are database only. For instance: https://www.postgresql.org/docs/current/catalog-pg-database.html https://www.postgresql.org/docs/current/catalog-pg-auth-members.html https://www.postgresql.org/docs/current/catalog-pg-authid.html https://www.postgresql.org/docs/current/view-pg-roles.html > 2)Is there a way to fetch the data from pg_* view to highlight the > specific connection/session/sqls which is using high memory in postgres? > > Appreciate your guidance. > > Regards > Sud -- Adrian Klaver adrian.klaver@aklaver.com