Re: Curious about exclusive table locks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Curious about exclusive table locks
Дата
Msg-id 28391.1068746625@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Curious about exclusive table locks  ("Uwe C. Schroeder" <uwe@oss4u.com>)
Список pgsql-general
"Uwe C. Schroeder" <uwe@oss4u.com> writes:
> Tom: What did you mean by "snapshot has been set" ?

Read the MVCC documentation.  Also it'd be worth your while to read the
slides from my 2002 O'Reilly talk:
http://conferences.oreillynet.com/cs/os2002/view/e_sess/2681
I've been meaning to get those slides put onto the Postgres web site,
but it's never gotten done ...

The slides don't really go into the issues for writing functions,
but the critical point is that the snapshot does not change while
a function runs; it's set when the interactive command that invokes
the function begins.  (There has been some discussion about whether
this is a bug or not, but that's how it works in all extant releases.)

            regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: DOMAIN usability
Следующее
От: Rajesh Kumar Mallah
Дата:
Сообщение: Re: DOMAIN usability