[PATCH] get_home_path: use HOME - Mailing list pgsql-hackers

From Rudolf Gavlas
Subject [PATCH] get_home_path: use HOME
Date
Msg-id CAEH6cQqbdbXoUHJBbX9ixwfjFFsUC-a8hFntKcci=diWgBb3fQ@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] get_home_path: use HOME  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [PATCH] get_home_path: use HOME  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Re: [PATCH] get_home_path: use HOME  (Aleksander Alekseev <a.alekseev@postgrespro.ru>)
List pgsql-hackers
Hi,

I work in an environment, where servers are administered by people
with different user names and identical uid (0). The attached patch
fixes a bug exposed in such environments: where the logic of
retrieving a personal configuration file relies solely on
get_home_path(), the different users are forced to share the file of
the first user with given uid.

The usage of HOME environment variable (if set) is IMO the right,
standard and faster way to get_home_path().

r.

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Rename max_parallel_degree?
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] Re: [HACKERS] Re: [HACKERS] Re: [HACKERS] Windows service is not starting so there’s message in log: FATAL: "could not create shared memory segment “Global/PostgreSQL.851401618”: Permission denied”