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 1s0izH-006nwS-0q for pgsql-general@arkaria.postgresql.org; Sat, 27 Apr 2024 14:25:10 +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 1s0izE-007Lux-Hs for pgsql-general@arkaria.postgresql.org; Sat, 27 Apr 2024 14:25:09 +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 1s0izE-007LqV-5x for pgsql-general@lists.postgresql.org; Sat, 27 Apr 2024 14:25:09 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s0izC-000JIr-G0 for pgsql-general@lists.postgresql.org; Sat, 27 Apr 2024 14:25:07 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2da08b06e0dso33227831fa.2 for ; Sat, 27 Apr 2024 07:25:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714227904; x=1714832704; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TOL+mGwCLIAaAize+zINxm8V9VWsRR0djQQi2ygaRB4=; b=k26VJtkAo3HKJta6PTzdjDlHTVzSOcwRMp9MCQSrA/XHQj0/3rBEjiAmgSjfNm2sM4 vsf8ayWDryr9CPq9u6sa3gts1HqakFQ8LMII2814oMfogbtMmZW2wIQj5n7CMt7RXU2z XmQ4XL5mILZEFjoDXc7uD06P+2I2zxoCDq/Lbs8Ll830naHOubirhSdOU8Amky2Dxbzk AjpypABRq3GizcyoXG6Gje0XXhMaPXdEORH9xuefljjfRqG07BM5lFn+pJEhRr4/NttU ZPVHoQfT6zGCAVRB4+cPwgjSx0meGGkiDAFyZ0R+qcils43QkpscKEFvRZJYqNcG4+73 qHPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714227904; x=1714832704; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TOL+mGwCLIAaAize+zINxm8V9VWsRR0djQQi2ygaRB4=; b=qPjiOGfp5qQ03zjuEuz3Tbx/gYSz75nZ/dnHJk8pxcEK39YwaOGS4//0+ZeCFRPWYz QRGhQCUOXaLElDolMHcsaVz9ZnCYKB9NAMdU4PSekLIvisfCYSTvK9W6PXElDXR2pkiH 20L3efNf5c/u4xn86mM+yiEsKaiz4PfOP9RnBRxtSP5aMon9PQnZAk/T34cPMFf1KX+A EpNXgQ3ViSf0SLL4LqjiEfv1ch96EX9TY6gU/Tr1rmRscnroV86A1wvNN2XCR4CPH1Q+ kFbplvKscd7Yw3t1iEoRzDZt4hrCOUhsAaPUeoML2hGaCan93gmcIvyyA5OJUcuK1UJZ xKdw== X-Gm-Message-State: AOJu0YxCdeLsk+i4N/mUl1QAWVeshj85fHw6uvAeH+YfnqTrs/vzPNFH pDKuWrNKbHhCdwNIS2zAedaM/thOJlKcCZoyxnqPs05YKTR4lM/dDd7UWDo8uz9mLzjMI4JdZSa F6n6y8UvSGCHToMKJwzSUk3UjAV6Ie0o0 X-Google-Smtp-Source: AGHT+IH619qO0Aa5Y4wExuPvQnX1uGkqZvbyp8lkJP709US2tKnEcibzl5sVgiHmHONJsyFfz1hVVnZxgTh7NVi1C5A= X-Received: by 2002:a2e:2e08:0:b0:2dd:eec6:f36f with SMTP id u8-20020a2e2e08000000b002ddeec6f36fmr3335235lju.36.1714227903686; Sat, 27 Apr 2024 07:25:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Julien Rouhaud Date: Sat, 27 Apr 2024 22:24:48 +0800 Message-ID: Subject: Re: Monitoring and debugging historical performance To: sud Cc: pgsql-general Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Sat, Apr 27, 2024 at 10:01=E2=80=AFPM sud wrote: > > Hi All, > While looking option to see how one can monitor database performance for = debugging into historical database performance issues (historical database = wait events , CPU/memory utilization in past, query execution times in past= , executions paths at any point in time in past etc), It appears there exi= sts some options as i googled in the internet like pg_sentinel,pgsnapper, p= g_collector. Wanted to check, if anybody used these utilities and suggest a= ny of them to use for a longer term use? I would personally recommend PoWA (https://powa.readthedocs.io/en/latest/), as it handles everything you require. Disclairmer: I'm the main author of this tool