psql died in midst of session

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: psql died in midst of session
Date: 2011-10-12 20:11:33
Message-ID: alpine.LNX.2.00.1110121305220.12767@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

This has not happened before to me. I'm running postgres-9.0.4 on
Slackware-13.1. I've been working on the command line using the psql shell
updating and fixing a table when the application failed on me:

PANIC: could not open file "pg_xlog/000000010000000000000046" (log file 0,
segment 70): Permission denied
PANIC: could not open file "pg_xlog/000000010000000000000046" (log file 0,
segment 70): Permission denied
The connection to the server was lost. Attempting reset: Failed.
!>
!> q
->
->
!> Terminated

When I try to restart postgres (as user postgres) I get this:

postgres(at)salmo:~$ postgres -D /usr/local/pgsql/data &
[1] 17783
postgres(at)salmo:~$ LOG: database system was interrupted while in recovery at
2011-10-12 13:00:05 PDT
LOG: database system was not properly shut down; automatic recovery in
progress
LOG: consistent recovery state reached at 0/4581E51C
LOG: redo starts at 0/457EC9C4
PANIC: could not open file "pg_xlog/000000010000000000000046" (log file 0,
segment 70): Permission denied
LOG: startup process (PID 17784) was terminated by signal 6: Aborted
LOG: aborting startup due to startup process failure

[1]+ Exit 1 postgres -D /usr/local/pgsql/data

pg_xlog is owned by postgres.users and has permissions 755. The /tmp/.S
file is not present, either.

Please advise me how to recover from whatever happened so I can get
postgres up and running again.

Thanks,

Rich

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2011-10-12 20:21:13 Re: psql died in midst of session [FIXED]
Previous Message David Johnston 2011-10-12 19:11:11 Re: how to key/value iterate in stored function