running script on server shutdown (TODO) - Mailing list pgsql-patches

From Volkan YAZICI
Subject running script on server shutdown (TODO)
Date
Msg-id 20051210193620.GA29685@alamut
Whole thread Raw
Responses Re: running script on server shutdown (TODO)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
I've written a small patch for following TODO item:
  «Add GUC variable to run a command on database
  panic or smart/fast/immediate shutdown.»

It adds two GUC variables as:
  enable_atexit_script_file
  atexit_script_file

postmaster will run related script file with passing shutdown type
(like "smart", "fast" or "immediate") as parameter to script file
on database shutdown. (Sorry, I'm not so good on PostgreSQL internals,
thus couldn't handle "panic" situation at the moment.)

I know, it's not the perfect one but I'd be so apprecited to hear
suggestions for fixing lost/wrong parts of it.


Regards.

--
"We are the middle children of history, raised by television to believe
that someday we'll be millionaires and movie stars and rock stars, but
we won't. And we're just learning this fact," Tyler said. "So don't
fuck with us."

Attachment

pgsql-patches by date:

Previous
From: Simon Riggs
Date:
Subject: COPY LOCK for WAL bypass
Next
From: Tom Lane
Date:
Subject: Re: running script on server shutdown (TODO)