public inbox for [email protected]
help / color / mirror / Atom feedFrom: Steeve Boulanger <[email protected]>
To: Ron Johnson <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why?
Date: Thu, 21 Nov 2024 15:33:36 -0600
Message-ID: <CAAiSvx9aZHPzMYcQtK5yNyPxcd4Le1erpUONP1W8DMvSi4vP=A@mail.gmail.com> (raw)
In-Reply-To: <CANzqJaDSU6dsbL6jc7DP7=iNu9HZaMPX9yN2WBtTxOb0JPpXOA@mail.gmail.com>
References: <CAAiSvx8_Z6QGey92dC+6Yona18KDMLWinfR5LOJsMgj-42XJtg@mail.gmail.com>
<[email protected]>
<CAAiSvx_vsiCmL3gBj+1hRpMxo=nOc3HUa+VaGO9_GfOXDWCsrQ@mail.gmail.com>
<[email protected]>
<CAAiSvx-pwz562KrTPdayK+qqRm9DxbrU1r9_Qkpm5BLh-1G+pA@mail.gmail.com>
<[email protected]>
<CANzqJaDSU6dsbL6jc7DP7=iNu9HZaMPX9yN2WBtTxOb0JPpXOA@mail.gmail.com>
Hello Ron,
> Also, "SELECT pg_postmaster_start_time();" to show the *real* Postgresql
start time, instead of what you think it is.
Yes you're right - I should have been more explicit.
[local]:5432 postgres@postgres=# select current_timestamp -
pg_postmaster_start_time() as uptime;
uptime
-------------------------
15 days 10:03:44.048383
-Steeve
On Thu, Nov 21, 2024 at 3:30 PM Ron Johnson <[email protected]> wrote:
> On Thu, Nov 21, 2024 at 4:12 PM Adrian Klaver <[email protected]>
> 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.
>
> --
> Death to <Redacted>, and butter sauce.
> Don't boil me, I'm still alive.
> <Redacted> lobster!
>
view thread (15+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why?
In-Reply-To: <CAAiSvx9aZHPzMYcQtK5yNyPxcd4Le1erpUONP1W8DMvSi4vP=A@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox