pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christoph Moench-Tegeder <cmt@burggraben.net>
Cc: Anders Kaseorg <andersk@mit.edu>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: alvherre@alvh.no-ip.org
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: [PATCH] Prefer getenv("HOME") to find the UNIX home directory
Date: Sun, 09 Jan 2022 18:16:43 -0500
Message-ID: <1899015.1641770203@sss.pgh.pa.us> (raw)
In-Reply-To: <Ydtrv7YnD+ac+eQV@elch.exwg.net>
References: <202110182223.zeze33l55qa5@alvherre.pgsql>
	<20211019.173422.706584612464055211.horikyota.ntt@gmail.com>
	<5d675cbe-7837-e9ae-961d-be7d03201f3b@mit.edu>
	<20211020.144014.580443822870543857.horikyota.ntt@gmail.com>
	<07CA67A0-A46C-4ED5-99C6-24D41BDDC8CA@yesql.se>
	<d452fd57-8c34-0a94-79c1-4498eb4ffbdc@mit.edu>
	<1769427.1641754742@sss.pgh.pa.us>
	<YdtY6Xd1tkDEuV+7@elch.exwg.net>
	<1888214.1641768008@sss.pgh.pa.us>
	<Ydtrv7YnD+ac+eQV@elch.exwg.net>

Christoph Moench-Tegeder <cmt@burggraben.net> writes:
> ## Tom Lane (tgl@sss.pgh.pa.us):
>> Isn't that a flat out violation of POSIX 8.3 Other Environment Variables?

> After poking around across some Linuxes, it looks like people silently
> agreed that "services" are not logged-in users: among the daemons,
> having HOME set (as observed in /proc/*/environ) is an exception,
> not the norm.

Meh.  I guess there's not much point in arguing with facts on the
ground.  Anders' proposed behavior seems like the way to go then,
at least so far as libpq is concerned.  (I remain skeptical that
psql would be run in such an environment, but there's no value
in making it act different from libpq.)

			regards, tom lane





view thread (18+ messages)  latest in thread

Message-ID: <1899015.1641770203@sss.pgh.pa.us>
Permalink:  ../1899015.1641770203@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1899015.1641770203@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, cmt@burggraben.net, andersk@mit.edu, daniel@yesql.se, horikyota.ntt@gmail.com, alvherre@alvh.no-ip.org, pgsql-hackers@lists.postgresql.org
  Subject: Re: [PATCH] Prefer getenv("HOME") to find the UNIX home directory
  In-Reply-To: <1899015.1641770203@sss.pgh.pa.us>

* 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