Re: 7.1beta4 initdb problem

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tim Barnard <tbarnard(at)povn(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: 7.1beta4 initdb problem
Date: 2001-02-05 17:05:53
Message-ID: Pine.LNX.4.30.0102051802220.762-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane writes:

> Probably initdb should have its own check for being run as root;
> this seems cleaner than reorganizing the checks in the postgres
> executable.

I does have that check, but unfortunately that check requires pg_id, and
finding the right pg_id requires finding the right postgres. The "right
pg_id" is not entirely as trivial as it sounds, because pg_id's from <=6.5
have very different behaviour.

An alternative would be to find the right pg_id first based on its (to be
implemented) --version, and then double-checking for the right postgres.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-02-05 18:00:44 Re: 7.1beta4 initdb problem
Previous Message Jakob Borg 2001-02-05 16:39:33 Lost large objects