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 1u6uNs-007Wbp-Iq for pgsql-general@arkaria.postgresql.org; Mon, 21 Apr 2025 16:52:40 +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 1u6uNq-0071c2-6S for pgsql-general@arkaria.postgresql.org; Mon, 21 Apr 2025 16:52:39 +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 1u6uNp-0071bt-S0 for pgsql-general@lists.postgresql.org; Mon, 21 Apr 2025 16:52:38 +0000 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u6uNn-001G7d-29 for pgsql-general@postgresql.org; Mon, 21 Apr 2025 16:52:38 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 77B06138017C; Mon, 21 Apr 2025 12:52:35 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Mon, 21 Apr 2025 12:52:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1745254355; x=1745340755; bh=jjLU5IgOchk7rSNAs8RJd6WvfFmKUdmlflii0fAd3sI=; b= l87jdSjTPlDQav7rsCkZvrUcNeL4XmzxB4hgaB0h+RsWMiniyiM21QDMFdCl/bNK 1q+TgvVSCJnPxtdeOxS+fnyFGKaT7IEAYWdecjfr+R1VYRnwoV7cS9I3YHS9z/Qw ofDsO3EUK6K/iPu9V/7XeS7xEe9gV3kDSKKW203nTX7xLNvY10rTfkR7jVd3IbTm U4zCxt2SxYXMLxkeYSGBKeK+91xWu/IiFVuG7RsJi31Y8rHI8MftZw78uQqrehtX 9W894N2qmXVS+07YtkWAAuWziC0AZaHxBMG7i+lRgZ4P6asp7P5U/0KTAaYBIsio +AiWd782I2SdK0WxoZbpSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1745254355; x= 1745340755; bh=jjLU5IgOchk7rSNAs8RJd6WvfFmKUdmlflii0fAd3sI=; b=f 6wmjQB8AA2oWMm+pzssArS7LkoC4n/s0jdWUm3rOBaerNNfMEiYRSFoY5SArbXAf RDmvjLtvnH33icpKE90XE3WONdFulxlwJ0SpsLo+3ycw2Vse1ttzBqrB7cePaXlh ++fZO4oLzYHiMpXYFteTc/8EfB2QAE+72eat+CYNXv3h4Ih5lmrGSvi78SLEBjlP UjCYyGReFtttjGZx/gK00qklZlbdwFtBJrBuHQbpxQ4uMz/CKm8kx8NRKApBPjDz E0FZGs+qQffb+oNQri4ncX/V1hUhiLw75v3mylfeM+M9dfs+pk6oy4nidWTxZ5HE 6/e6ci1nzhz+QgeuVAnkw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvgedufeejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkff ggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghnucfmlhgr vhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtf frrghtthgvrhhnpefhveeihfevlefffedthedukeevfefhfedtgeeifeevteffgfefhedt ffetudettdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprhgtphht thhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrnhhtohhnrdhtgihtse hgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlhesphhoshht ghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 21 Apr 2025 12:52:34 -0400 (EDT) Message-ID: <91d7fc8f-58c5-4932-9f23-32f2341776b4@aklaver.com> Date: Mon, 21 Apr 2025 09:52:34 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Cannot turn track_counts on To: Anton Shepelev Cc: pgsql-general@postgresql.org References: <20250416122749.2b2d25cafcd76aa7d633ed07@gmail.com> <1900177.1744815217@sss.pgh.pa.us> <20250417170534.b2e919e950b77c4d4dbd5483@gmail.com> <1a99f488-9d24-41d1-a1a5-17ea4ce87899@aklaver.com> <20250418002307.a029379d2c0f781ca7726f91@gmail.com> <20250421194644.cdd5064d94d58edd62e54dc1@gmail.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <20250421194644.cdd5064d94d58edd62e54dc1@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/21/25 09:46, Anton Shepelev wrote: > I wrote: > >> I will test if clearing shared_preload_libraries and >> restarting Postgres has any effect on track_counts, just >> in case. > > Nope, it didn't unstick track_counts: > > db=# show shared_preload_libraries ; > -[ RECORD 1 ]------------+- > shared_preload_libraries | > > db=# select * from pg_settings where name like '%k_cou%'; > -[ RECORD 1 ]---+-------------------------------------------------- > name | track_counts > setting | off > unit | > category | Statistics / Query and Index Statistics Collector > short_desc | Collects statistics on database activity. > extra_desc | > context | superuser > vartype | bool > source | override > min_val | > max_val | > enumvals | > boot_val | on > reset_val | off > sourcefile | > sourceline | > pending_restart | > > Have you any further ideas how to turn track_counts on? It is matter of finding out what is setting?: source | override There is something different about your setup, as here on Ubuntu(which uses the Debian packaging) I see: select * from pg_settings where name like '%k_cou%'; -[ RECORD 1 ]---+--------------------------------------------------- name | track_counts setting | on unit | NULL category | Statistics / Cumulative Query and Index Statistics short_desc | Collects statistics on database activity. extra_desc | NULL context | superuser vartype | bool source | default min_val | NULL max_val | NULL enumvals | NULL boot_val | on reset_val | on sourcefile | NULL sourceline | NULL pending_restart | f -- Adrian Klaver adrian.klaver@aklaver.com