finding the procpid (or pid) for a prepared transaction - Mailing list pgsql-admin

From CS DBA
Subject finding the procpid (or pid) for a prepared transaction
Date
Msg-id 4D5DD51C.30600@consistentstate.com
Whole thread Raw
Responses Re: finding the procpid (or pid) for a prepared transaction  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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...


pgsql-admin by date:

Previous
From: Selva manickaraja
Date:
Subject: Re: Trigger File Behaviour
Next
From: Tom Lane
Date:
Subject: Re: finding the procpid (or pid) for a prepared transaction