From: | Kristjan Mustkivi <sonicmonkey(at)gmail(dot)com> |
---|---|
To: | depesz(at)depesz(dot)com |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: CREATE SUBSCRIPTION not picking up .pgpass while psql does |
Date: | 2022-08-31 13:26:22 |
Message-ID: | CAOQPKat69_JoFF2UPcSKuFixti=7G3g+KXWS+wUNFTXHY2Batg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, Aug 31, 2022 at 4:07 PM hubert depesz lubaczewski
<depesz(at)depesz(dot)com> wrote:
> How/where you provide it?
>
> Why would you assume that postgres (running from user postgres
> presumably) would look for pgpass in /root/.pgpass?
>
> postgres should have it in ~postgres/.pgpass
> with proper ownership.
Hi, depesz,
I use the dockerized version of Postgres (both old and new cases).
The docker-compose.yml file maps the .pgass file as volume (-
./v_pgpass:/root/.pgpass).
Inside the container the home is /root:
sudo docker exec -ti db bash
root(at)pg(dot)newtest:/# cd ~
root(at)pg(dot)newtest:~# pwd
/root
root(at)pg(dot)newtest:~# ls -la .pgpass
-rw------- 1 postgres root 74 Aug 30 11:38 .pgpass
And as said, the psql utility has no problems finding the .pgass where
it is. If I lie to it about the pgpass location i.e by giving
passfile=/root/.pgpassx it will ask for password.
Why create subscription does not pick the .pgpass up like psql does, -
that is what I cannot figure out.
Cheers!
--
Kristjan Mustkivi
Email: kristjan(dot)mustkivi(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | hubert depesz lubaczewski | 2022-08-31 13:27:58 | Re: CREATE SUBSCRIPTION not picking up .pgpass while psql does |
Previous Message | hubert depesz lubaczewski | 2022-08-31 13:07:20 | Re: CREATE SUBSCRIPTION not picking up .pgpass while psql does |