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  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Re: TransactionIdIsInProgress() cache  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Список 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 по дате отправления:

Предыдущее
От: "Heikki Linnakangas"
Дата:
Сообщение: Re: Bulk Insert tuning
Следующее
От: "Pavan Deolasee"
Дата:
Сообщение: Re: [PERFORM] Very slow (2 tuples/second) sequential scan after bulk insert; speed returns to ~500 tuples/second after commit