Re: Cannot turn track_counts on

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Anton Shepelev <anton(dot)txt(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Cannot turn track_counts on
Date: 2025-04-22 15:21:09
Message-ID: 7858785e-d2d3-43ff-93d4-8517f7820e50@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/22/25 01:31, Anton Shepelev wrote:
> Adrian Klaver:

>
>> There is something different about your setup, as here on
>> Ubuntu(which uses the Debian packaging) I see:
>> [...]
>
> Yes. It is on on your side, and pgsql shows NULL values as
> NULL. Can the latter be due to a differnce in Postgres
> versions, for mine is 11.21 (as I have reported before)?

No that is because I have my ~/.psqlrc set up with:

\pset null 'NULL'

From here:

https://www.postgresql.org/docs/current/app-psql.html

See the:

Meta-Commands
\pset

section

as well as

Files

psqlrc and ~/.psqlrc

> user(at)xx:/opt/sva$ psql -V
> psql (PostgreSQL) 11.21 (Debian 1:11.21-astra.se6+ci1)
>
> but `track_counts' is stuck off only on one.
>
> A complete reinstall with purging of all configuration data
> comes to mind, but it is a last-resort measure, as the
> system is a production one, and actively used.
>

Given that the Debian Postgres packaging allows you to install multiple
clusters of a given version I would create a new 11.21 cluster as a test
and see what track_counts is set to. That would help determine whether
the setting is coming from the initial install. You could then add the
other components to the cluster one by one and see if and where the
track_counts setting changes.

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Yongye Serkfem 2025-04-22 17:06:28 Re: Oracle_fdw
Previous Message thombrown1979 2025-04-22 15:17:31 Re: Feature Proposal: Column-Level DELETE Operation in SQL