pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: .history': No such file or directory - a symptom of ?
Date: Fri, 11 Aug 2023 09:24:43 -0500
Message-ID: <de138791-a92b-18df-a9e5-f25287d32c25@gmail.com> (raw)
In-Reply-To: <dae1cc64-8e8e-bd6d-7519-8cf1d31acf29@yahoo.co.uk>
References: <2dfed6d4-115e-389e-b265-49a0d8599ecb.ref@yahoo.co.uk>
	<2dfed6d4-115e-389e-b265-49a0d8599ecb@yahoo.co.uk>
	<ZNUFEkB1GCblJf6r@tamriel.snowman.net>
	<dae1cc64-8e8e-bd6d-7519-8cf1d31acf29@yahoo.co.uk>

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.





view thread (5+ messages)  latest in thread

Message-ID: <de138791-a92b-18df-a9e5-f25287d32c25@gmail.com>
Permalink:  ../de138791-a92b-18df-a9e5-f25287d32c25@gmail.com/
Also on:    postgresql.org/message-id/de138791-a92b-18df-a9e5-f25287d32c25@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: .history': No such file or directory - a symptom of ?
  In-Reply-To: <de138791-a92b-18df-a9e5-f25287d32c25@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox