![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am normally the admin for our PostgreSQL servers, but someone else tried to kill a runaway query while I was out sick. Unfortunately, he tried killing the runaway query by killing the postmaster. Now we are dealing with a persistent problem that just won't go away. |
#3
| |||
| |||
|
|
Tony O'Bryan wrote: I am normally the admin for our PostgreSQL servers, but someone else tried to kill a runaway query while I was out sick. Unfortunately, he tried killing the runaway query by killing the postmaster. Now we are dealing with a persistent problem that just won't go away. The only quick solution appears to be copying the database cluster. 1) Create a new cluster at a different location using initdb 2) Disable remote access to the old cluster. 3) Dump the cluster. 4) Start a parallel instance of the postmaster at the new location. 5) Import the dump into the new instance. 6) Shut down both instances. 7) Rename the old instance to an archival area. 8) Rename the new instance to that of the old instance. 9) Restart the database. The new instance is now fixed of all the problems caused by killing the postmaster. I'm not an expert with Postgres but do use it a lot and after reading |
![]() |
| Thread Tools | |
| Display Modes | |
| |