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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-admin by date

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