Re: Postgres installation on Leopard; database on Mac-User-Level

From: Richard Huxton <dev(at)archonet(dot)com>
To: Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres installation on Leopard; database on Mac-User-Level
Date: 2008-01-15 14:32:20
Message-ID: 478CC3F4.6080001@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stefan Schwarzer wrote:
>> There's no reason why you *have* to run the server as user postgres
>> though. It's perfectly possible to do the above as user schwarzer. If
>> the database system is intended just for that one user, that might
>> make sense too.
>>
>> Oh, make sure the logfile is in a directory writable by the same user
>> too of course.
>
> You guys are too kind. Really. A big THANK YOU for everybody helping me
> (and others) to get things working! You really do a fantastic job!

People helped us when we started here. Hopefully you'll feel the same :-)

> So, when you say that there is no reason to be obliged to run the server
> as user postgres, but that I can run it as user schwarzer: then I can
> skip the chown/chmod steps you mentioned? I just go for the initdb etc.
> commands as listed above, without specifying a(nother) user?

Exactly.

You might have to chmod 0700 on the data directory though, PG might well
complain if other users have access.

Oh, and be careful if you are running as yourself - that means you can
delete/mangle the data files from the browser etc.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2008-01-15 14:52:37 Re: Forgot to dump old data before re-installing machine
Previous Message Richard Huxton 2008-01-15 14:29:32 Re: backup and restore