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 1tEuH6-00AMx8-E3 for pgsql-general@arkaria.postgresql.org; Sat, 23 Nov 2024 17:50:28 +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 1tEuH5-002VFH-27 for pgsql-general@arkaria.postgresql.org; Sat, 23 Nov 2024 17:50:27 +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 1tEuH4-002VAk-KN for pgsql-general@lists.postgresql.org; Sat, 23 Nov 2024 17:50:26 +0000 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tEuH2-003Thw-Bo for pgsql-general@postgresql.org; Sat, 23 Nov 2024 17:50:25 +0000 Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-83aad4a05eeso118366739f.1 for ; Sat, 23 Nov 2024 09:50:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732384222; x=1732989022; 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=exE90NgurSvkhaoerkJz5r+PaF8ih2CWqN1UWxwn1Bo=; b=WxAfmeT27q8jYmxdxFGAKvTDZ5Aj38OAPejuLYfsxY1uYauXeRlCJ5qcg7N/xUhAGR C/yNUqF4lgDb7DbLbC+Bv4wGu8jQ8XcfYlEt9kGE7aYJrde5xGOUOOHvVcrILOMF0bM3 PgvVZu3/d6IkgVDY/HorI8A4vj6un8REOp2WO0xLuxFCeQRvlma2Xwlt7z2XD4Te5OXy Gb24HGtz6OAZEKCYvtfY2cgHgYAK+nNUMuM8YtAere/Uy9lGqnRo8y+mENPeFd/UqSXt Ig84eCKOeRZjhiKHgjhwdI0OSp/EqlpzqqEq6peJNrQAjjS6VS72i12wesk8Ttk+Yt9C 5zZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732384222; x=1732989022; 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=exE90NgurSvkhaoerkJz5r+PaF8ih2CWqN1UWxwn1Bo=; b=GBmobDtvvAax+uMh0EKHRl2MIjmKXQKdS7PMf0YPkTdMj+v7qJDKgcoxobNRltBXAW bzN4MF4S8FN+HHqlTfH3POe1mcA/ISYDUea1qmyPw+Y34GJ6/HNC5tWs6QwA2hCzqjed WSOgrM6uHRY2mv/kLg58c/LoFE5mDbTWzux4FbyLH2VtxG0GdSnF56rUoUkGxu6rqZ+L LlgARS8+qLgKmkJzo97Oo23xRVHmD56lECuK4DOKnEOidooDA6lSQH3dTjPKkhGv+0E3 npomheMTeKTKziTOZRTN/7NV5J1AB6ubWJelNR3+g2dfOIX3uqpVHRalNK6dk5LujLBx AgsQ== X-Forwarded-Encrypted: i=1; AJvYcCV3NN1B4TLd+q3oYxkPUbv54DJDtVlSqFOyjjJiw3gzaNuZsTPS6zx+bCftr5uNiRGOs4ZvBE3zzeLYYTkC@postgresql.org X-Gm-Message-State: AOJu0YzfbhncFCD8LR1YjKZ9dY1Q6lPzM4ck0ieNIP+8SQjPzHU2cNsD jeGjp5IdUQ9jagSvXX3E2PpAcV45GTwIBaj0OCg5wdXAYgGaYN5XxPXhi5GxQ/cB66QXO78A6G9 /fe6rPKG6Y0tlgbArhyvz7Q80wvs= X-Gm-Gg: ASbGncvtEHE24Sbff39V2NVvOKG2eU8oTZ5DyH0+FaLyg+cpicPm5FEsPRoqcqqceFt nj6qQguQd0GvARVWSjRuNjOsZ7s0xApw= X-Google-Smtp-Source: AGHT+IE9XR7NpXoJp5+G3SEknvdJe4guflPu4j5cNH+YexKj1uFsXR4SxL/T0OdoZwZBK9IpEp0XBoC7/OQOb1G7whY= X-Received: by 2002:a05:6602:6d02:b0:83a:b7a2:74e6 with SMTP id ca18e2360f4ac-83ecdb33633mr808532139f.0.1732384222300; Sat, 23 Nov 2024 09:50:22 -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> <1270021b-c5b5-4ca8-b48d-7dfb163bb6f7@aklaver.com> <9a0d0e80-13e1-421a-9d84-da000fe4433a@aklaver.com> <01020193592431ad-0fedca70-38e9-4fd0-bf49-f5bbf628c76e-000000@eu-west-1.amazonses.com> In-Reply-To: From: Greg Sabino Mullane Date: Sat, 23 Nov 2024 12:49:45 -0500 Message-ID: Subject: Re: Database stats ( pg_stat_database.stats_reset ) get reset on daily basis - why? To: Steeve Boulanger Cc: "Ray O'Donnell" , Adrian Klaver , pgsql-general Content-Type: multipart/alternative; boundary="0000000000002f571a06279822e8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002f571a06279822e8 Content-Type: text/plain; charset="UTF-8" As a superuser, rename pg_stat_reset inside one of the commonly affected databases: alter function pg_stat_reset rename to hey_stop_running_pg_stat_reset_already; Then see who starts complaining. Additionally, your server log will get helpful entries like this: ERROR: function pg_stat_reset() does not exist Cheers, Greg --0000000000002f571a06279822e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
As a superuser, rename pg_stat_reset inside one of the com= monly affected databases:

alter function pg_stat_reset r= ename to hey_stop_running_pg_stat_reset_already;

T= hen see who starts complaining. Additionally, your server log will get help= ful entries like this:

ERROR: =C2=A0function pg_st= at_reset() does not exist

Cheers,
Greg

--0000000000002f571a06279822e8--