pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6671: Killed restore command causes postmaster to exit
2+ messages / 2 participants
[nested] [flat]

* BUG #6671: Killed restore command causes postmaster to exit
@ 2012-05-31 18:56  edward@heroku.com
  0 siblings, 1 reply; 2+ messages in thread

From: edward@heroku.com @ 2012-05-31 18:56 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      6671
Logged by:          Ed Muller
Email address:      edward@heroku.com
PostgreSQL version: 9.0.7
Operating system:   Linux (Ubuntu 10.04)
Description:        

We have this thing where we kill the restore command sometimes, to ensure
it's not stuck. 

This has rarely led to postmaster dying afterwards instead of retrying.

Here are some related logs...

[CRIMSON] LOG:  restored log file "00000006000031B500000099" from archive

[CRIMSON] FATAL:  could not restore file "00000006000031B50000009A" from
archive: return code 36608

[CRIMSON] LOG:  startup process (PID 854) exited with exit code 1

[CRIMSON] LOG:  terminating any other active server processes




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #6671: Killed restore command causes postmaster to exit
@ 2012-05-31 22:53  Tom Lane <tgl@sss.pgh.pa.us>
  parent: edward@heroku.com
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2012-05-31 22:53 UTC (permalink / raw)
  To: edward@heroku.com; +Cc: pgsql-bugs

edward@heroku.com writes:
> We have this thing where we kill the restore command sometimes, to ensure
> it's not stuck. 

Um, what makes you think that's a good idea?

> This has rarely led to postmaster dying afterwards instead of retrying.

"Rarely"?  As I read the code, it will happen every single time.
Failure of the restore process is a failure, we do not retry.
(The general theory is that if you think you need retries, you
should code the restore_command to handle that.)

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2012-05-31 22:53 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-05-31 18:56 BUG #6671: Killed restore command causes postmaster to exit edward@heroku.com
2012-05-31 22:53 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox