pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: CS DBA <cs_dba@consistentstate.com>
To: pgsql-admin@postgresql.org
Subject: finding the procpid (or pid) for a prepared transaction
Date: Thu, 17 Feb 2011 19:10:36 -0700
Message-ID: <4D5DD51C.30600@consistentstate.com> (raw)

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...




view thread (4+ messages)  latest in thread

Message-ID: <4D5DD51C.30600@consistentstate.com>
Permalink:  ../4D5DD51C.30600@consistentstate.com/
Also on:    postgresql.org/message-id/4D5DD51C.30600@consistentstate.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: cs_dba@consistentstate.com
  Subject: Re: finding the procpid (or pid) for a prepared transaction
  In-Reply-To: <4D5DD51C.30600@consistentstate.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox