dbTalk Databases Forums  

question on forced-killing the postmaster

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss question on forced-killing the postmaster in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shadowbox@punkass.com
 
Posts: n/a

Default question on forced-killing the postmaster - 04-20-2004 , 02:42 AM






why is it bad to kill -9 the postmaster? any links? i'm wondering why
is it bad...

percy

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


Reply With Quote
  #2  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: question on forced-killing the postmaster - 04-20-2004 , 11:49 AM






shadowbox (AT) punkass (DOT) com wrote:
Quote:
why is it bad to kill -9 the postmaster? any links? i'm wondering why
is it bad...
The postmaster gets no way to shut down cleanly. It just isn't as good
as using a normal kill and waiting a few seconds. This is true for
killing most unix processes. Use kill -9 only when other kills fail.

--
Bruce Momjian | http://candle.pha.pa.us
pgman (AT) candle (DOT) pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
  #3  
Old   
Bruno Wolff III
 
Posts: n/a

Default Re: question on forced-killing the postmaster - 04-20-2004 , 01:17 PM



On Tue, Apr 20, 2004 at 15:42:35 +0800,
shadowbox (AT) punkass (DOT) com wrote:
Quote:
why is it bad to kill -9 the postmaster? any links? i'm wondering why
is it bad...
There might be more detail in the FAQ, but what I remember is that the
main issue is that shared memory doesn't necessarily get cleaned up
properly. You don't have to worry about losing committed transactions.

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
  #4  
Old   
Tom Lane
 
Posts: n/a

Default Re: question on forced-killing the postmaster - 04-20-2004 , 04:48 PM



shadowbox (AT) punkass (DOT) com writes:
Quote:
why is it bad to kill -9 the postmaster?
Because then you end up with unreclaimed shared memory and semaphores.
Do this a few times and you'll run into the kernel limits on how much
of either you can have, and then be unable to start a fresh postmaster
without manual cleanup (or rebooting).

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.