Re: Cannot turn track_counts on - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Cannot turn track_counts on
Date
Msg-id 7858785e-d2d3-43ff-93d4-8517f7820e50@aklaver.com
Whole thread Raw
In response to Re: Cannot turn track_counts on  (Anton Shepelev <anton.txt@gmail.com>)
List 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@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.klaver@aklaver.com




pgsql-general by date:

Previous
From: thombrown1979@duck.com
Date:
Subject: Re: Feature Proposal: Column-Level DELETE Operation in SQL
Next
From: Yongye Serkfem
Date:
Subject: Re: Oracle_fdw