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 1u26Lp-00CwNd-Tc for pgsql-general@arkaria.postgresql.org; Tue, 08 Apr 2025 10:38:41 +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 1u26Ln-007iTv-Qz for pgsql-general@arkaria.postgresql.org; Tue, 08 Apr 2025 10:38:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u26Ln-007iTm-Gb for pgsql-general@lists.postgresql.org; Tue, 08 Apr 2025 10:38:39 +0000 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u26Ll-00470K-14 for pgsql-general@lists.postgresql.org; Tue, 08 Apr 2025 10:38:39 +0000 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-72a0a9cb29fso3156372a34.0 for ; Tue, 08 Apr 2025 03:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744108715; x=1744713515; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=MhlU48syQHbVzkamobYSd0LiwJY2gUkiIax/XDZxq+8=; b=Oc3vnJvSYLpWyOU/4NCt6lDsJB2uY9qOVsdG4ns0MqQDV3b+htHsSL5HuxoqK+r6F0 AVVuwUuEbeh1gTfb82eF8R5PbdgTs2DCKurQ3qoePHJQbPtAtu82xxQ/H3heBzlnTYLY cXAOVxPJDB30ZS+evtIxry342w48YAPg8njA/RtgF6QrED05nekAW4iezXOMZtDBNk8h 6OZNB1ICbS8rgzchtntSaQMtW5C7ZR5iNY0oMYgu+6+9NFQAqnIrFdFg0fywkkX+zTxH kItq77bRc3yAsa1KRMh98c6CgQ8se9j3PYhVLGHBSV6ejSA43cQBvchuOlnHrxrjrhz4 r/Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744108715; x=1744713515; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MhlU48syQHbVzkamobYSd0LiwJY2gUkiIax/XDZxq+8=; b=mvP42fzN8vTqxu65u/FPu9z8CL7J3mxjd7XE7zx/TfXLeBXhpghYqOs/vp4Mfmi4P9 C7lb42TMbu+QHjWj2aDdDEUQiZVwBFkuhLLt/yUhwAGhWrA/Vz5NqQ1ECF8C8SwhSXht 8vQJPArtAbxuNPy64Xd5lMdwN2jrhlhAl/Pg4UAAoP3n+3Xf2HL31+OQ2DONyHIZJ1L8 WfaU9vAVRF2waCsi/Ak8YLTvYY0eTz9alDeubh5KDZ7GDRSzJ0c3wdxjdc7lfnDp0Hxi FUzZsRqJxMdDvN9vJeqlokLOtDhdhQT9W5v1wzDMkDxl+7ks85IoOKHCVZcYSIQEpPd+ cZfw== X-Gm-Message-State: AOJu0Yyet0gjoIhFjy50uCS9EsuP1CXMzuf48UNyt+Sm2ZwYZ0EHa1tV C5QPt2k/7MZ1EwNpnBldxixa9nolPJjb6mqFTWKAb5Aqx5IgdjlKUucXv0eYY6O2hKtTBHGQIjG bkLgkgdumGfld/obOP4SqyKuolvcZl/pq X-Gm-Gg: ASbGncuZfoJiG67nVq8ieSpO9sg/Mvd9JPWlT52shU37Lalufrl+zhahHvLOkMqvdjQ 2gmUQ5oyji1KRraHcuAKnwaLf+rjvTAorr+P22Am49aFRVLi5p0rOxraOP8uTdHfX+nsMC6bxf4 RsVagBhpUhu9EFczHE5ZoUmxMofme71bDRhOMMPcUjoiefbYbGIh4UCXZ2fg== X-Google-Smtp-Source: AGHT+IFoON/nPpsWTvZdJOJLAI1WCn2JcZ0y54Z37HJcDt6wbOO3bEgrWBgZV3M37VG6bxeFuTZ7Q1j3fi7PyM0OeP8= X-Received: by 2002:a05:6808:2109:b0:3fa:4418:679b with SMTP id 5614622812f47-4004d97b30cmr6202582b6e.13.1744108715165; Tue, 08 Apr 2025 03:38:35 -0700 (PDT) MIME-Version: 1.0 From: yudhi s Date: Tue, 8 Apr 2025 16:08:22 +0530 X-Gm-Features: ATxdqUGlISz2RedNfDhDOWJIl5syKBWgUhbdA-yiZ8Ek0UtYhlNLgZ_rBoLkGPs Message-ID: Subject: Queries for monitor To: pgsql-general Content-Type: multipart/alternative; boundary="0000000000006ad326063241f45b" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000006ad326063241f45b Content-Type: text/plain; charset="UTF-8" Hello All, I am trying to configure basic monitoring for our postgres database using data dictionary views as below. Want to understand if these are accurate or if I am making any mistakes here by querying this way. And also , it's something we want to do for the application specific sessions/queries and want to exclude the system related sessions/queries , so how can that be done in the same query? https://gist.github.com/databasetech0073/5d8113eaba13ac62352f97521ce68a43 Regards Yudhi --0000000000006ad326063241f45b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello All,
I am trying to configure basic monitoring fo= r our postgres database using data dictionary views as below. Want to under= stand if these are accurate or if I am making any mistakes here by=C2=A0que= rying this way. And also , it's=C2=A0something we want to do for the ap= plication specific sessions/queries and want to exclude the system related = sessions/queries , so how can that be done in the same=C2=A0query?

=

Regards
Yudhi
--0000000000006ad326063241f45b--