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 1tEEly-006Asi-4W for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2024 21:31: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 1tEElw-001nk9-Rc for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2024 21:31:32 +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 1tEElw-001njz-Gv for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2024 21:31:32 +0000 Received: from mail-oa1-x32.google.com ([2001:4860:4864:20::32]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tEElu-003AVh-IN for pgsql-general@postgresql.org; Thu, 21 Nov 2024 21:31:31 +0000 Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-29654932226so660134fac.0 for ; Thu, 21 Nov 2024 13:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732224688; x=1732829488; darn=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=DQdvKEf5XMOqos2qYqAMuRQP8D9BwJa28OPZ2sEzUMU=; b=FdN7Gw74WZ3FrOPl8mYu+NkNi3fztlOFx5k5V6NazUMcyQILwNic5sjpHgKWyAb4wZ jyEYZfVcOdUJizlgphH8nOsxlUPkvjWfiPm3tE39XNpX8KZGZtmi5k2iko6ktmHgrKHr T3MssyuB84UF3YwLYSJCO1mxbvYaQnEdQ5ngFlojZXvqCyqzxrZRPwjBpVx5voaJt7eQ yRHdkVLrXZipoWUa7tQOBdwp3klsWeUbRYa/M+GLDrRv4GgrmaUcSl3iQE9bGYJpC8Xz UcjsQEUVzoIsaU/jeDFpWZSlEmY4DJVeY7q15cAHPTssd0msSvDYoDClWHZySQd79I7I pRRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732224688; x=1732829488; 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=DQdvKEf5XMOqos2qYqAMuRQP8D9BwJa28OPZ2sEzUMU=; b=u3c2uTjDKsYSCysbSipUs/H3MF5frS/NucMhyI8UcYBVpeJraRHu1gGr5ESGTGqcqZ 4YxdGPa1XhpmAx0FCAaSd/pJC2TLjY3uzbl5tvlq9YXjJBD44PyK8dJQpeeMLTKu+X8m 9zYSH4/gaSSRzmygq8TDOSNkUCM/TESe/Dke5b498Vkw+c24q+UZ8Q0ROIBwzmOMNba7 gxUoukwgub4SNHrEzxAOmsXgWwv5GUIDaPz85iY36zwtp03Dzfe4tVgmcB4647Zhgsff 0HyGbndPXWyKktrWxGpxDKv4mZCXjR5TvA/r0Tu43V2MjdLRH19y290DBGnabmPd8rWW v7IQ== X-Gm-Message-State: AOJu0Yy7pvjrPxBGtIPwhLEqT6CEKokGkVWJa/t/OuQd8wnVdj0skhwq kRKvfoJMpyErrOTJcCLIyujxeZ1yKBC8FNAQ9suRRVBq7vuowKzMgzGjpt3EdJkz/vTQbo6O/+7 L9klpSE840YsGsC9NO+nKzc30o94= X-Gm-Gg: ASbGncvojbOTkWMzTnwIk7zqXP7/NsoVmMWlcIArFYrHB1TrslccuFS1qfecakUO5od K5iwIGNGmgpRud6JUNz2w/oYIDroodmI= X-Google-Smtp-Source: AGHT+IHjt9orfIC3l0Lx9v/jRTJWQoRQvyyKe0jHEtkFA3z4Tv0+Nv0VqG8Y4Gqs5sFNwZXUUGYLgVwyG/3AIrNQQ7M= X-Received: by 2002:a05:6870:c0d:b0:297:bfa:495b with SMTP id 586e51a60fabf-2971e84095fmr485815fac.13.1732224688557; Thu, 21 Nov 2024 13:31:28 -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: Steeve Boulanger Date: Thu, 21 Nov 2024 15:31:16 -0600 Message-ID: Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why? To: Adrian Klaver Cc: pgsql-general Content-Type: multipart/alternative; boundary="0000000000003b96c9062772fd83" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000003b96c9062772fd83 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > 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. That was already done, but nothing relevant was found unfortunately. -Steeve On Thu, Nov 21, 2024 at 3: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. > > > > > -Steeve > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > --0000000000003b96c9062772fd83 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>=C2=A0 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.

=
That was already done, but nothing relevant was found unfortunat= ely.=C2=A0

-Steeve

On Thu, Nov 21, 2024 at 3:= 12=E2=80=AFPM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 11/21/24 12:57, Steeve Boulanger wrote:
>
>=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.

>
> -Steeve


--
Adrian Klaver
adrian.klave= r@aklaver.com

--0000000000003b96c9062772fd83--