pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Anders Kaseorg <andersk@mit.edu>
Cc: pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
Subject: Re: [PATCH] Prefer getenv("HOME") to find the UNIX home directory
Date: Mon, 18 Oct 2021 19:23:50 -0300
Message-ID: <202110182223.zeze33l55qa5@alvherre.pgsql> (raw)
In-Reply-To: <1634252654444.90107@mit.edu>

On 2021-Oct-14, Anders Kaseorg wrote:

> This is important for systems where many users share the same UID, and
> for test systems that change HOME to avoid interference with the
> user’s real home directory.  It matches what most applications do, as
> well as what glibc does for glob("~", GLOB_TILDE, …) and wordexp("~",
> …).
> 
> There was some previous discussion of this in 2016, where although
> there were some questions about the use case, there seemed to be
> general support for the concept:
> 
> https://www.postgresql.org/message-id/flat/CAEH6cQqbdbXoUHJBbX9ixwfjFFsUC-a8hFntKcci%3DdiWgBb3fQ%40m...

I think modifying $HOME is a strange way to customize things, but given
how widespread it is [claimed to be] today, it seems reasonable to do
things that way.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/





view thread (18+ messages)  latest in thread

Message-ID: <202110182223.zeze33l55qa5@alvherre.pgsql>
Permalink:  ../202110182223.zeze33l55qa5@alvherre.pgsql/
Also on:    postgresql.org/message-id/202110182223.zeze33l55qa5@alvherre.pgsql

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: alvherre@alvh.no-ip.org, andersk@mit.edu, pgsql-hackers@lists.postgresql.org
  Subject: Re: [PATCH] Prefer getenv("HOME") to find the UNIX home directory
  In-Reply-To: <202110182223.zeze33l55qa5@alvherre.pgsql>

* 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