Re: time stops within transaction

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: time stops within transaction
Дата
Msg-id 39EE6EF9.5B0A4C89@tpf.co.jp
обсуждение исходный текст
Ответ на Re: time stops within transaction  (Alex Pilosov <alex@pilosoft.com>)
Ответы Re: time stops within transaction  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

Tom Lane wrote:

> Alex Pilosov <alex@pilosoft.com> writes:
> >> Consider statement boundaries in an SQL function --- the
> >> function is probably being called from some outer statement, so
> >> advancing now() within the function would violate the spec constraint
> >> with respect to the outer statement.
> > Postgres doesn't have an idea of what a 'top-level' statement is? I.E.
> > statement as submitted by a client (libpq)?
>
> There's never been any reason to make such a distinction.

There's already a distinction.
Snapshot is made per top-level statement and functions/subqueries
use the same snapshot as that of top-level statement.

Regards.

Hiroshi Inoue




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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Solaris FAQ
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Postgre7.0.2 drop user bug