pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: pg_service file questions
Date: Tue, 20 Jun 2023 03:27:28 -0500
Message-ID: <260b572f-8da1-1c40-c0fc-cf0c65a8b0ef@gmail.com> (raw)
In-Reply-To: <SI2PR04MB428273EF0CA5BF771474ABAB965CA@SI2PR04MB4282.apcprd04.prod.outlook.com>
References: <SI2PR04MB428273EF0CA5BF771474ABAB965CA@SI2PR04MB4282.apcprd04.prod.outlook.com>

On 6/20/23 01:11, JUN ZHI wrote:
> Hi,
>
> I was scanning through the postgresql documentations when i came across 
> this webpage: PostgreSQL: Documentation: 15: 34.17. The Connection Service 
> File <https://www.postgresql.org/docs/current/libpq-pgservice.html> . I am 
> fairly new to database and i have a few questions regarding this:
>
>  1. Is pg_service.conf and .pg_service.conf (with a dot at the front)
>     different files?
>  2. The documentation stated that the .pg_service.conf is named
>     %APPDATA%\postgresql.pg_service.conf on windows which is a directory i
>     can not find.
>  3. The documentation also stated that we can check for the sysconfigdir
>     environment variable and point it to somewhere else, but when i
>     checked for the sysconfigdir path, it is pointing to
>     C:/PROGRA~1/POSTGR~1/15/etc which again, is a directory i can not find
>     : to be specific, i can not find the etc file stated in the pathing.
>
> So where should i put this pg_service file and does it link with the 
> database itself?

%APPDATA% is normally hidden to users.  Here's how to show it?

https://support.microsoft.com/en-us/windows/view-hidden-files-and-folders-in-windows-97fbc472-c603-9...

-- 
Born in Arizona, moved to Babylonia.

view thread (3+ messages)  latest in thread

Message-ID: <260b572f-8da1-1c40-c0fc-cf0c65a8b0ef@gmail.com>
Permalink:  ../260b572f-8da1-1c40-c0fc-cf0c65a8b0ef@gmail.com/
Also on:    postgresql.org/message-id/260b572f-8da1-1c40-c0fc-cf0c65a8b0ef@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: pg_service file questions
  In-Reply-To: <260b572f-8da1-1c40-c0fc-cf0c65a8b0ef@gmail.com>
  References: <SI2PR04MB428273EF0CA5BF771474ABAB965CA@SI2PR04MB4282.apcprd04.prod.outlook.com> <260b572f-8da1-1c40-c0fc-cf0c65a8b0ef@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