Re: [HACKERS] IPC Memory problem with Postmaster on BSDi 4.x

From: "J(dot) Michael Roberts" <mirobert(at)cs(dot)indiana(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] IPC Memory problem with Postmaster on BSDi 4.x
Date: 1999-08-02 04:12:22
Message-ID: Pine.GSO.4.10.9908012254100.15220-100000@school.cs.indiana.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> If you are
> on a platform that doesn't ordinarily set USER, you lose. I've been
> burnt by that myself.
>
> I am not sure whether we ought to make the code look at LOGNAME as
> a fallback if USER isn't set, or just document that you ought to set
> USER.

My take would be at least to change the installation documentation,
and improve the error message (you can never improve error message *too*
much). Getting clever about what username to use seems more dangerous
than helpful, and besides, it's simple enough simply to say "initdb needs
to figure out your user somehow" and leave it at that. How often do you
run initdb anyway?

The first sounds good, but I wonder what the odds are of
> picking up the wrong username. On my platform, for example, su'ing
> to the postgres account does *not* change LOGNAME, which would mean
> initdb would pick the wrong thing. Maybe what we need is just a
> better error message ("USER environment variable is not set, please
> set it or provide -u switch" ...)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message J. Michael Roberts 1999-08-02 04:33:54 [HACKERS] A suggestion on finding those pesky .so files
Previous Message Tom Lane 1999-08-02 04:01:03 Re: [HACKERS] initdb needed for newest sources