Re: TransactionIdIsInProgress() cache

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: TransactionIdIsInProgress() cache
Дата
Msg-id 20080311130748.GE6767@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: TransactionIdIsInProgress() cache  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Ответы Re: TransactionIdIsInProgress() cache
Re: TransactionIdIsInProgress() cache
Список pgsql-patches
I didn't check whether your transformation is correct, but if so then it
can be changed like this and save the extra XidDidCommit call:

    xvac_committed = TransactionIdDidCommit(xvac);
    if (xvac_committed)
    {
        /* committed */
    }
    else if (!TransactionIdIsInProgress(xvac))
    {
       if (xvac_committed)
       {
          /* committed */
       }
       else
       {
          /* aborted */
       }
    }
    else
    {
        /* in-progress */
    }


--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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