Re: Assertion failure when streaming logical changes

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Assertion failure when streaming logical changes
Дата
Msg-id 20150407125420.GA12291@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: Assertion failure when streaming logical changes  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
On 2015-04-07 17:22:12 +0800, Craig Ringer wrote:
> It might be a good idea to apply this if nothing better is forthcoming.
> Logical decoding in WALsenders is broken at the moment.

Yes.

> Otherwise it needs to go on the 9.5 blockers list.
> 
> But could we get rid of those active_count manipulations too? Could you
> > replace the SnapBuildSnap[Inc|Dec]Refcount calls with
> > [Un]RegisterSnapshot()?
> >
> 
> It would be interesting to know why it was done that way in the first
> place, rather than using the snapshot management infrastructure.

Because the snapshot tracking infrastructure isn't particularly
suitable. These snapshots are much longer lived; they span transactions
and such. Nothing snapmgr.c is made for. It seemed more
complicated/bug-prone to change snapmgr.c to support a foreign use case.

Greetings,

Andres Freund



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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Row security violation error is misleading
Следующее
От: Andres Freund
Дата:
Сообщение: Re: PATCH: Add 'pid' column to pg_replication_slots