From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
---|---|
To: | Michał Lis <fcs1(at)poczta(dot)onet(dot)pl> |
Cc: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Christophe Pettus <xof(at)thebuild(dot)com>, pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: BUG #16550: Problem with pg_service.conf |
Date: | 2020-07-23 20:50:27 |
Message-ID: | CAMkU=1zgqq9H=VL7f0zcA3gQLB5qm1D8EO3HN96N6uPvpV_g-g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Thu, Jul 23, 2020 at 10:26 AM Michał Lis <fcs1(at)poczta(dot)onet(dot)pl> wrote:
> The connection service file can be:
> - a per-user service file at ~/.pg_service.conf
> - or the location specified by the environment variable PGSERVICEFILE
> - or it can be a system-wide file at `pg_config
> --sysconfdir`/pg_service.conf
> * - or in the directory specified by the environment variable
> PGSYSCONFDIR.*
>
> The last point talks the service file could placed into PGSYSCONFDIR.
> Using PostrgeSQL on Windows the PGSYSCONFDIR leads into D:\PostgreSQLx86\9.6\etc
> folder as a result of PG_config.exe.
> This folder normally is absent. I created it manually and then copy into
> it the pg_service.conf file.
>
> So the bug is that the pg_service.conf file is not read from this location.
>
I can reproduce this after using the EDB installer to install.
I create the directory indicated by `pg_config --sysconfdir`, put the
pg_service.conf in it, and psql and pg_dump work without setting either
PGSERVICEFILE or PGSYSCONFDIR. But pgbench and PgAdmin4 do not work with
the service file this way, but do work if I define PGSERVICEFILE, so there
does seem to be something buggy going on.
Cheers,
Jeff
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Janes | 2020-07-23 21:16:34 | Re: BUG #16550: Problem with pg_service.conf |
Previous Message | Tom Lane | 2020-07-23 19:38:43 | Re: BUG #16476: pgp_sym_encrypt_bytea with compress-level=6 : Wrong key or corrupt data |