Re: Using hba_file parameter and relative path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 28, 2017 at 2:15 PM, David G. Johnston <david.g.johnston@xxxxxxxxx> wrote:
​Its the documented behavior.

"​When setting any of these parameters, a relative path will be interpreted with respect to the directory in which postgres is started."


Why would we want that hba_file value to be relative to something as volatile as pwd?

Why do you want it under PGDATA but not in the root directory thereof?

For the sake of grouping and source control, I put my configs into a subdirectory of PGDATA. I wanted to keep them separate from the other files and directories in PGDATA.

Thanks for pointing out the documentation reference, I missed that in my own search.
 
In any case if you are going to use relative paths then "pwd" should be a considered part of the architecture and not something that is considered "volatile".  That seems to be how most programs behave and I don't see much advantage for PostgreSQL to be different in this regard.

Obviously just my opinion, but I do consider it "volatile" in the sense that I could be (and usually am) anywhere on the host system when calling the startup. Perhaps I'm the outlier though since I'm relatively new to the Postgres game.

Anyway, since this is working as documented, I now know to use the absolute path to avoid the issue.

Cheers,
Don.

--
Don Seiler
www.seiler.us

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux