Skip site navigation (1) Skip section navigation (2)

running script on server shutdown (TODO)

From: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
To: pgsql-patches(at)postgresql(dot)org
Subject: running script on server shutdown (TODO)
Date: 2005-12-10 19:36:20
Message-ID: 20051210193620.GA29685@alamut (view raw or flat)
Thread:
Lists: 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."

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2005-12-10 20:06:44
Subject: Re: running script on server shutdown (TODO)
Previous:From: Simon RiggsDate: 2005-12-10 12:07:26
Subject: COPY LOCK for WAL bypass

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group