[ADMIN] Using hba_file parameter and relative path - Mailing list pgsql-admin

From Don Seiler
Subject [ADMIN] Using hba_file parameter and relative path
Date
Msg-id CAHJZqBBwn7dUO9nE6m7yPuOjXkyW2nbB--1BYpNTUKVs5HymWg@mail.gmail.com
Whole thread Raw
Responses Re: [ADMIN] Using hba_file parameter and relative path  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-admin
In going through some parameter file cleanup and re-factoring, I've been using the hba_file parameter to specify a non-standard file location. I tried using a relative location, thinking it would be relative to $PGDATA but in actuality it is relative to the pwd of my bash session that starts the database.

For example, if I'm in /tmp when I run "pg_ctl start", it will look for the hba_file value under /tmp. If I change to $PGDATA/pg_log, it will look under there.

Obviously I can change to an absolute path and not worry about it, but I'm curious if this is the intended behavior. Why would we want that hba_file value to be relative to something as volatile as pwd?

FWIW this is Postgres 9.6.5 on CentOS 7.3.

Don.

--
Don Seiler
www.seiler.us

pgsql-admin by date:

Previous
From: Fabrízio de Royes Mello
Date:
Subject: Re: [ADMIN] dblink_tds or similar for PostgreSQL 10
Next
From: "David G. Johnston"
Date:
Subject: Re: [ADMIN] Using hba_file parameter and relative path