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

finding the procpid (or pid) for a prepared transaction

From: CS DBA <cs_dba(at)consistentstate(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: finding the procpid (or pid) for a prepared transaction
Date: 2011-02-18 02:10:36
Message-ID: 4D5DD51C.30600@consistentstate.com (view raw or flat)
Thread:
Lists: pgsql-admin
Hi All;

I have several prepared tx which are running for a long long time. I 
want to kill 'em but I dont know the process id. I can get the xid via 
pg_prepared_xacts.transaction however the tx's have no locks thus no 
corresponding pg_locks row.  Anyone know how I can get a procpid based 
on a tx id?


Thanks in advance...


Responses

pgsql-admin by date

Next:From: Tom LaneDate: 2011-02-18 02:19:24
Subject: Re: finding the procpid (or pid) for a prepared transaction
Previous:From: Selva manickarajaDate: 2011-02-18 01:43:00
Subject: Re: Trigger File Behaviour

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