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 1tEEkW-006Ad1-Ia for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2024 21:30:04 +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 1tEEkV-001kU3-7Y for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2024 21:30:03 +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 1tEEkU-001kTS-PA for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2024 21:30:02 +0000 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tEEkS-003AVI-Jv for pgsql-general@postgresql.org; Thu, 21 Nov 2024 21:30:02 +0000 Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3e5fa17a79dso935035b6e.1 for ; Thu, 21 Nov 2024 13:30:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732224598; x=1732829398; darn=postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=wVIpdNmByA1AUgrd5enZNjIR5GBszFLa15RimKllMHk=; b=gNwlZcn3RE8wMXq8cL9wMgZfaHkc7V16nQInZoT9oV4OMwsASQqL1jowH53vDXrIf8 cbMbwYIW+b2apJhUul9Io9ksflX3Sw1hap4vmvmQUjd7bdPTY9xT128xYVMbOe3ywkIm C8JOPxbsk6j+GlfM2MkMiWB1ekDoETnW4rur2gzCEsPSBOYB6VwZWAkuvl/6+WuScyT3 A98JxuGiflzkEwD+kZ1l8RcuN6FpXPpydZPucFOfoZWshNzerar0UkXx7ZVdH+h712w6 5EFg3GxSVdn/0D2s/Z4OvAMHxYYf6CtdI4kS1i0Y70JdkiBDbAiLJgB2uO0IOSbk/GMo n+1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732224598; x=1732829398; h=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=wVIpdNmByA1AUgrd5enZNjIR5GBszFLa15RimKllMHk=; b=V5fegsRkYLBwaQo2rYJZ8K8zxsRbf9ynpX5Di2Nla8OHgMjNpQHS4wyI1eyIJQ5U8c FI+3yACMSV6YMG9z7CeVCpiLs2WHgVwIMWnyqA9tNjsKgVUDiPbTIWEWrBK2GTVu5tak U1offH61JxpaJ8As1DJr6iP7xKIsRKYDIMM/kfg31HfPnOAynzo2bXN48O9DbgQsOajo mDETwV4CtyrEARazCbh9SZITowQz3Oy0wmSEKY+s1AQDSbyOGI2qADPiW4iWK9KJrzsa 5MELHSVKoB6cmxaGMhCPS6tH04HuY410GbECaOWi9iLC78BfhBiKnlBQqLv6byXfjFYx wcsg== X-Gm-Message-State: AOJu0YwlqGgNmMX2f1z6c90+/rRydSFuU7/ViK/+VbD3vsdUlVPgDlR/ DNaroDR+qeAUWjhg3bCyZfkuRgIeFWu/SG8z3X+zlFi39ZQBrJU7R3comW0HCFSg2oEXXJoYWWL w0FybPkZFsA6p7DdhEWodmcbFDTswOA== X-Gm-Gg: ASbGncvNNHgwwPzzjGsPOIBzZVX0V+dSC7v3Icf9Tgw01gGddbQdu8CwvfDwANZaf8V g0LT5hvxN/P4yUCn+ECVqhSNm7Kbr3tG7 X-Google-Smtp-Source: AGHT+IGAXQS7tT9gPIZnxuLReTd9B6ap+I6DnpG69P7XC4o0D8sQLY4t9WGHPuzukcSRElLf7ps5MceUC7LcPvv80vw= X-Received: by 2002:a05:6808:23c1:b0:3e7:c465:2f9 with SMTP id 5614622812f47-3e91582426emr624502b6e.17.1732224598029; Thu, 21 Nov 2024 13:29:58 -0800 (PST) MIME-Version: 1.0 References: <6a157286-5948-48ac-bc50-7bb4e65ee5e5@aklaver.com> <38725031-5e80-46ee-b403-a92107b24c39@aklaver.com> <1e2db3f5-00f4-4ec2-800f-46136c2fad59@aklaver.com> In-Reply-To: <1e2db3f5-00f4-4ec2-800f-46136c2fad59@aklaver.com> From: Ron Johnson Date: Thu, 21 Nov 2024 16:29:47 -0500 Message-ID: Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why? To: pgsql-general Content-Type: multipart/alternative; boundary="000000000000d64a7d062772f755" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000d64a7d062772f755 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 21, 2024 at 4:12=E2=80=AFPM Adrian Klaver wrote: > On 11/21/24 12:57, Steeve Boulanger wrote: > > > > > Please reply to list also. > > > > My apologies - I thought I did a "Reply all", but apparently not. I'm a > > little bit of a noob with email distrib lists. > > > > > 1) What is log_min_error_statement set to? > > > > name | setting | pending_restart > > -------------------------+---------+----------------- > > log_min_error_statement | error | f > > > > > 2) Did you reload the server when changing?: > > > > yes - pg_reload_conf() > > All I can think to do is look at the logs around the stats_reset times > for the databases and see if there is anything relevant. > Also, "SELECT pg_postmaster_start_time();" to show the *real* Postgresql start time, instead of what you think it is. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --000000000000d64a7d062772f755 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Nov 21, 2024 at 4:12=E2=80=AFPM A= drian Klaver <adrian.klaver= @aklaver.com> wrote:
On 11/21/24 12:57, Steeve Boulanger wrot= e:
>
>=C2=A0 > Please reply to list also.
>
> My apologies - I thought I did a "Reply all", but apparently= not. I'm a
> little bit of a noob with email distrib lists.
>
>=C2=A0 > 1) What is log_min_error_statement set to?
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 name =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 | setting | pending_restart
> -------------------------+---------+-----------------
>=C2=A0 =C2=A0log_min_error_statement | error =C2=A0 | f
>
>=C2=A0 > 2) Did you reload the server when changing?:
>
> yes - pg_reload_conf()

All I can think to do is look at the logs=C2=A0 around the stats_reset time= s
for the databases and see if there is anything relevant.
=C2=A0
Also, "SELECT pg_postmaster_start_time();" to= show the real=C2=A0Postgresql start time, instead of what you think= it is.

--=
Dea= th to <Redacted>, and butter sauce.
Don't boil me, I'm st= ill alive.
<Redacted> lobster!
--000000000000d64a7d062772f755--