Re: Snapshot warning

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Snapshot warning
Дата
Msg-id 20081125193018.GP4875@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Snapshot warning  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Snapshot warning  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane escribió:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > After the patch we don't have any way to detect whether resowner.c has
> > any snapshot still linked to.  I assume there's no objection to adding a
> > new entry point in resowner.c for this.
>
> Hmm, that's a bit problematic because resowner.c doesn't have any global
> notion of what resource owners exist.  I think you still need to have
> snapmgr.c maintain a list of all known snapshots.  resowner.c can only
> help you with tracking reference counts for particular snapshots.

A counter seems to suffice.  Patch attached.

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

Вложения

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

Предыдущее
От: Ron Mayer
Дата:
Сообщение: Re: blatantly a bug in the documentation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Snapshot warning