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.96) (envelope-from ) id 1wHk7n-007TWi-2w for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Apr 2026 15:13:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wHk7m-000Ktg-28 for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Apr 2026 15:13:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wHk7m-000KtY-0j for pgsql-hackers@lists.postgresql.org; Tue, 28 Apr 2026 15:13:22 +0000 Received: from forward100a.mail.yandex.net ([2a02:6b8:c0e:500:1:45:d181:d100]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wHk7i-00000003CrI-0O4z for pgsql-hackers@lists.postgresql.org; Tue, 28 Apr 2026 15:13:21 +0000 Received: from mail-nwsmtp-mxback-production-main-67.vla.yp-c.yandex.net (mail-nwsmtp-mxback-production-main-67.vla.yp-c.yandex.net [IPv6:2a02:6b8:c22:c94:0:640:a81c:0]) by forward100a.mail.yandex.net (Yandex) with ESMTPS id 0768AC03C0 for ; Tue, 28 Apr 2026 18:13:13 +0300 (MSK) Received: from mail.yandex.ru (2a02:6b8:c15:2d13:0:640:1400:0 [2a02:6b8:c15:2d13:0:640:1400:0]) by mail-nwsmtp-mxback-production-main-67.vla.yp-c.yandex.net (mxback) with HTTPS id 9Db5uY74xGk0-GdJwJc39; Tue, 28 Apr 2026 18:13:12 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1777389192; bh=OJcZO7XvwKulrrptNsnUxtSKgWMQzFOrAd5mDaGGOZ4=; h=Message-Id:Date:Subject:To:From; b=iCthfwp3nG3jh0SfJkv9Y3F/Jss+RdoBvpFlpl+02mh2CwQmJB9RLJKf/BZNEZbhZ uqCQbyVLI5L3n34W0pbR6fXnrA1AZMAlM4TGWX3aFJw04VHExpHPNC5kuRs1gWRqFs ckjQ8ntCEVcl5aNIHE6mAxCpe5P3c4RSJGHr53JM= Authentication-Results: mail-nwsmtp-mxback-production-main-67.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by mail-sendbernar-production-main-81.vla.yp-c.yandex.net (sendbernar) with HTTPS id 8021dda21a644f9ee376e8fcf4b62888; Tue, 28 Apr 2026 18:13:11 +0300 From: Maksim Logvinenko To: "pgsql-hackers@lists.postgresql.org" Subject: Fix the error hint message and test for reset_shared with unknown stats type MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Tue, 28 Apr 2026 20:13:11 +0500 Message-Id: <433431777389005@mail.yandex.ru> Content-Transfer-Encoding: 8bit Content-Type: text/html; charset=utf-8 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk
Hi hackers,
 
The errhint() in pg_stat_reset_shared() were missing the fact that recently added in [1] new lock stats kind.
The patch fixes error hint message and regress test for reset_shared with unknown stats type.
 
[1]: https://www.postgresql.org/message-id/aIyNxBWFCybgBZBS%40ip-10-97-1-34.eu-west-3.compute.internal
 
Best regards,
Maksim Logvinenko
Postgres Professional: http://postgrespro.com