| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Forgot to dump old data before re-installing machine |
| Date: | 2008-01-24 15:41:41 |
| Message-ID: | 10787.1201189301@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-patches |
Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch> writes:
> After running initdb the postmaster started smoothly. I stopped it,
> copied my database files into the same location, started the
> postmaster again, and then got this error message:
> schwarzers-mac-mini:/usr/local/pgsql schwarzer$ /usr/local/bin/pg_ctl
> -D /usr/local/pgsql/data -l postgres.log start
> pg_ctl: could not open PID file "/usr/local/pgsql/data/
> postmaster.pid": Permission denied
You're trying to start the server as yourself (user schwarzer) but the
files all belong to user postgres:
> drwx------ 16 postgres admin 544 Jan 23 18:23 data
The files have to be owned by the user that runs the server. If you
want to switch over to doing that as schwarzer, a quick "chown -R"
will help.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bill Moran | 2008-01-24 15:46:24 | Re: Getting all tables into memory |
| Previous Message | User Map | 2008-01-24 15:19:40 | Re: changing the default directory |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stefan Schwarzer | 2008-01-24 16:10:51 | Re: Forgot to dump old data before re-installing machine |
| Previous Message | Stefan Schwarzer | 2008-01-24 13:41:25 | Re: Forgot to dump old data before re-installing machine |