Search Postgresql Archives

Re: could you tell me this..?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





2010/8/5 백승엽 <sybaek@xxxxxxxxxxxx>
Hi.
 
 
I am korean database engineer.
 
my english skill is very poor.
 
but i desire that you teach this situation.
 
 
um...
 
I am testing postgresql performance  in these days;
 
today, I found this situation.
 
 
 
Session 1. -
 
begin;
delete from XXXX;
 
 
Session 2 -
 
delete from XXXX;
 
 
thus, it occured row level locking.
 
 
 
 
so. i killed Session 1's PID with kill -9 commands
 
 

killing it with -9 crashed the whole PostgreSQL server, don't do that. Instead just login to the database and run the function pg_cancel_backend() http://www.postgresql.org/docs/8.4/static/functions-admin.html, much more safe way.

regards
Szymon


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux