Re: [PATCH] get_home_path: use HOME

From: Aleksander Alekseev <a(dot)alekseev(at)postgrespro(dot)ru>
To: Rudolf Gavlas <r(dot)stu3(dot)1(at)googlemail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] get_home_path: use HOME
Date: 2016-09-21 08:43:03
Message-ID: 20160921084303.GA42261@e733
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> I work in an environment, where servers are administered by people
> with different user names and identical uid (0).

Multiple users with same uid is orthodox indeed. Just out of curiosity -
what environment is this, if it's not a secret?

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

As a side note I personally think that considering $HOME environment
variable is not such a bad idea. However I think we should make sure
first that this is really a bug that is relatively easy to reproduce in
real-world environments, a not just a hack for single misconfigured
system.

--
Best regards,
Aleksander Alekseev

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message valeriof 2016-09-21 08:56:14 Re: Error running custom plugin: “output plugins have to declare the _PG_output_plugin_init symbol”
Previous Message Craig Ringer 2016-09-21 07:40:34 Re: [PATCH] Transaction traceability - txid_status(bigint)