Re: finding the procpid (or pid) for a prepared transaction

Поиск
Список
Период
Сортировка
От CS DBA
Тема Re: finding the procpid (or pid) for a prepared transaction
Дата
Msg-id 4D5DDDFE.4000807@consistentstate.com
обсуждение исходный текст
Ответ на Re: finding the procpid (or pid) for a prepared transaction  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: finding the procpid (or pid) for a prepared transaction
Список pgsql-admin
On 02/17/2011 07:19 PM, Tom Lane wrote:
> CS DBA<cs_dba@consistentstate.com>  writes:
>> 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.
> If they're prepared, they're *not* running, and they don't have a
> process id.  They're just going to sit there until you do COMMIT
> PREPARED or ROLLBACK PREPARED.
>
>             regards, tom lane

aah, makes sense Thanks.

So, for future reference.. if I prepare a tx, and then execute the
prepared stmt, is there a way to associate the xid from a prepared txn
(pg_prepared_xacts) with the row in pg_stat_activity showing the
executing prepared stmt (within the current prepared txn)?  or is there
a way to see the text of a currently prepared txn so I can look for the
statement being executed in pg_stat_activity?




В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: finding the procpid (or pid) for a prepared transaction
Следующее
От: CS DBA
Дата:
Сообщение: Re: finding the procpid (or pid) for a prepared transaction