Re: Multiple call of GetTransactionSnapshot in single flow

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Multiple call of GetTransactionSnapshot in single flow
Дата
Msg-id 9375.1416376114@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Multiple call of GetTransactionSnapshot in single flow  (Rajeev rastogi <rajeev.rastogi@huawei.com>)
Список pgsql-hackers
Rajeev rastogi <rajeev.rastogi@huawei.com> writes:
> What is the reason for taking snapshot multiple time:

To get the right answer.  I believe Robert Haas has been down this rabbit
hole most recently before you: see commits d573e239f and 532994299.
The execution snapshot has to be (at minimum) later than acquisition of
all table locks for the query, and that means it'd better be different
from the snapshot used for parse/plan activities.

The right solution here is not so much to reduce the number of snapshots
as to make them cheaper.  Heikki was working on something for that,
but I'm not sure where he is with that patch.
        regards, tom lane



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

Предыдущее
От: Etsuro Fujita
Дата:
Сообщение: Re: postgres_fdw behaves oddly
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: REINDEX CONCURRENTLY 2.0