Re: [HACKERS] How to determine that a TransactionId is really aborted?

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: [HACKERS] How to determine that a TransactionId is really aborted?
Дата
Msg-id CAJGNTeNaBNsKNPdyh9FgwY7FvhRn7nm-4J8_Wxx2z-bmrimGSw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] How to determine that a TransactionId is reallyaborted?  (Eric Ridge <eebbrr@gmail.com>)
Ответы Re: [HACKERS] How to determine that a TransactionId is reallyaborted?  (Eric Ridge <eebbrr@gmail.com>)
Список pgsql-hackers
On 22 October 2017 at 15:00, Eric Ridge <eebbrr@gmail.com> wrote:
>> On Oct 22, 2017, at 1:50 PM, Peter Geoghegan <pg@bowt.ie> wrote:
>>
>> On Sun, Oct 22, 2017 at 12:23 PM, Eric Ridge <eebbrr@gmail.com> wrote:
>>> Can anyone confirm or deny that this is correct?  I feel like it is correct, but I'm no expert.
>>
>> What are you going to use the code for? I think that that context is
>> likely to matter here.
>
> I'm not exactly sure yet, but I'm thinking about storing transaction ids externally and then regularly poking
Postgresto see which ones are aborted-and-no-longer-considered-visible so I can clean up my external list.
 
>

so, what you want is txid_status() [1]... while this is new in v10 you
can use the code as guide or just migrate to v10 ;)

[1] https://www.postgresql.org/docs/10/static/functions-info.html#functions-txid-snapshot

-- 
Jaime Casanova                      www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: [HACKERS] Re: [BUGS] BUG #14849: jsonb_build_object doesn't like VARIADIC callsvery much
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] [BUGS] BUG #14849: jsonb_build_object doesn't like VARIADIC calls very much