Re: .history': No such file or directory - a symptom of ?

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: .history': No such file or directory - a symptom of ?
Date: 2023-08-11 14:24:43
Message-ID: de138791-a92b-18df-a9e5-f25287d32c25@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 8/11/23 03:20, lejeczek wrote:
[snip]
>
> So, seeing logs flooded that way.... I don't like it (even if I could be
> sure everything is in sync) particularly for master shows:
>
> -> $ sudo -u postgres psql --port=5432 -x -c 'select
> client_addr,sync_state from pg_stat_replication;'
> could not change directory to "/root": Permission denied
> (0 rows)

Try this:

sudo su - postgres -c "psql ..."

--
Born in Arizona, moved to Babylonia.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Stephen Frost 2023-08-13 23:22:25 Re: .history': No such file or directory - a symptom of ?
Previous Message Roland Che 2023-08-11 14:13:17 Posgres Upgrade With Postgis