From: | mack(at)ifis(dot)cs(dot)tu-bs(dot)de |
---|---|
To: | tgl(at)sss(dot)pgh(dot)pa(dot)us |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Aborting transactions |
Date: | 2006-06-26 20:10:07 |
Message-ID: | 44A03F1F.mailJHY11PP6J@ifis.cs.tu-bs.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
>Thomas Mack <mack(at)ifis(dot)cs(dot)tu-bs(dot)de> writes:
>> Is there any chance to monitor the current transactions and abort them,
>> in case of need?
>
>Sure, just SIGINT whichever backend you want to cancel its query.
>Use "ps" or pg_stat_activity to figure out the right PID to kill.
>
I don't have a pg_stat_activity on this 7.4.6, so using ps gives me:
postgres(at)is20 ~ 4 > ps -ef | grep postmaster
postgres 4499 4498 0 08:59:18 ? 0:04 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 23268 4498 0 12:50:39 ? 0:03 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 4713 4498 0 09:25:05 ? 0:05 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 20836 4498 0 15:22:51 ? 0:02 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 20859 4498 0 18:51:48 ? 0:01 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 25116 4498 0 13:40:26 ? 0:04 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 12050 4498 0 21:57:30 ? 0:00 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 4498 4489 0 08:59:18 ? 0:47 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 18589 4498 0 21:09:09 ? 0:00 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 11104 4498 0 21:34:24 ? 0:03 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 4500 4499 0 08:59:18 ? 0:48 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 14684 4498 0 19:46:16 ? 0:00 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 25527 4498 0 13:47:25 ? 0:03 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 13863 4498 0 19:20:56 ? 0:00 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 11910 4498 0 21:54:18 ? 0:00 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 23450 4498 0 12:53:48 ? 0:05 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 24216 4498 0 13:16:27 ? 0:04 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 21584 4498 0 19:08:55 ? 0:01 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 25904 4498 0 13:54:19 ? 0:04 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 17848 4498 0 17:35:52 ? 0:01 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 10893 4498 0 21:28:04 ? 0:00 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 12210 12147 0 22:02:27 pts/22 0:00 grep postmaster
postgres 18650 4498 0 21:10:34 ? 0:00 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 1563 4498 0 19:15:38 ? 0:01 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 16993 4498 0 20:26:05 ? 0:08 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 14210 4498 0 19:30:01 ? 0:10 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 14457 4498 0 19:38:37 ? 0:01 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 14030 4498 0 19:23:51 ? 0:01 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 16675 4498 0 20:18:21 ? 0:00 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 14914 4498 0 19:49:00 ? 0:01 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres 17576 4498 0 20:41:26 ? 0:00 /usr/local/pgsql/bin/postmaster -i -p 5356 -o -e
postgres(at)is20 ~ 5 >
So, what is what? I will switch to 8.1 later this year, is it better
with that version?
Best regards,
Thomas Mack
TU Braunschweig, Institut für Informationssysteme
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-06-26 20:15:50 | Re: Aborting transactions |
Previous Message | Rodrigo Sakai | 2006-06-26 20:02:44 | RES: Hiding table structure information |