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 1s81J6-009074-UU for pgsql-general@arkaria.postgresql.org; Fri, 17 May 2024 17:23:50 +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 1s81J6-00FoSH-NW for pgsql-general@arkaria.postgresql.org; Fri, 17 May 2024 17:23:48 +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 1s81J6-00FoS6-CT for pgsql-general@lists.postgresql.org; Fri, 17 May 2024 17:23:48 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s81J3-000kU3-0V for pgsql-general@lists.postgresql.org; Fri, 17 May 2024 17:23:47 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-523b017a5c6so3469690e87.1 for ; Fri, 17 May 2024 10:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715966625; x=1716571425; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NAlayazNVsdXa76KI4MsFIRYBNrlLRsJXey+3mAY8+4=; b=SVtEF6OXLAiEuxCjKCLJWdL+8+Y0/D6hRsYE6tLHhO2EDT2t0xPrisZ71iuqd3PZIu dcYCzwvptURulZ8i6eM0RHjQy4HyMu8AvzAwfQFzG1iYlTPNvHLwZp3R4flQYm9Vs9/K wjVBWjPjWu3DvN3eLKMaXUWgUDKS0Fw+H7MZwWqSz/uhwCu3S3tGW6jIjSPJTiorg3nW 3FNlzS6k5II/MLcUcKn3YKg32UbiWW4QfAtZbALMSoN+CPmRFT/gQ1rqgp6GRhHAkLp1 K4Qp/03i9oECEK7ESUAcErYVplP7dy/dlzynMgDgKTvPIKv6sSp31x0/DjtgCrM8MGE5 gDww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715966625; x=1716571425; h=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=NAlayazNVsdXa76KI4MsFIRYBNrlLRsJXey+3mAY8+4=; b=eo5KoooA6Fd/aCmA9ttMiHRMS7LorBkRpMM3bBuQITC949h/WNv1hxNeuFpsTZEx3f 2l27RIRM88L4oH4/NXrA2mC5qMS9Lxb3JIezjwxGYDAYQaUc2u4DZwe6FY7suqyCrrBI nxn/e31+Zz/pIEQtBmhgoCRj2xXl8e+gwORObJYGNiq0p68ui6qTPWW11GiEOMJBkmOi 52d5AdauODhppdgLm4r6/8MsIVybCiYolKRlOi3GtEjM12Xn+K3Ig7WnQxZDYyCPURr+ El/ILhSuI9VsMHGqcjEnE6qlxirQRQU7dZgxBQuri9cpQ5DYkwUuhR0omEbF8qz7UkRB 8gBw== X-Gm-Message-State: AOJu0YzsbNWy75uvGbxcRmUuIQYkGApRU8ofZmdjJRdKA3izqZsBrGqU HesMFlYnaEKM25+XBdZ5NrVEqsMo8ivDmkMTaEahrvvoqSBVax36WmBO8fZHQh4nnVj6wjmDfM2 BCKSRLcbSKmn8AI8zWt2aYGqIW4A9Hh6H X-Google-Smtp-Source: AGHT+IEINHNttNU6nJKzAQnPowoB02pXYUNjhsL/jdZPUo0h0Iadx4EXEq4Hr0I0g2cbmxteDzAtWxMM0v4rmFMbXVE= X-Received: by 2002:a05:6512:3d24:b0:51d:5f0a:8839 with SMTP id 2adb3069b0e04-5220fc7c529mr26186578e87.5.1715966624992; Fri, 17 May 2024 10:23:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Greg Sabino Mullane Date: Fri, 17 May 2024 13:23:09 -0400 Message-ID: Subject: Re: Execution history of a single query To: arun chirappurath Cc: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000002115a40618a99dfd" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002115a40618a99dfd Content-Type: text/plain; charset="UTF-8" Not directly through pg_stat_statements, no. But you can: * Use log_min_duration_statement to spy on individual runs * Periodically copy pg_stat_statements to another table, reset the stats, and then you have some time-based buckets to play with. Cheers, Greg --0000000000002115a40618a99dfd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Not directly through pg_stat_statements, no. But you can:<= div>
* Use log_min_duration_statement to spy on individual ru= ns
* Periodically copy pg_stat_statements to another table, reset= the stats, and then you have some time-based buckets to play with.

Cheers,
Greg

--0000000000002115a40618a99dfd--