Accidental setting of XLogReaderState.private_data ?

Поиск
Список
Период
Сортировка
Искать
От
Antonin Houska
Тема
Accidental setting of XLogReaderState.private_data ?
Дата
Msg-id
30563.1555329094@localhost
Список
Дерево обсуждения
Accidental setting of XLogReaderState.private_data ? Antonin Houska <ah@cybertec.at>
Re: Accidental setting of XLogReaderState.private_data ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Accidental setting of XLogReaderState.private_data ? Michael Paquier <michael@paquier.xyz>
StartupDecodingContext() initializes ctx->reader->private_data with ctx, and
it even does so twice. I couldn't find a place in the code where the
(LogicalDecodingContext *) pointer is retrieved from the reader, and a simple
test of logical replication works if the patch below is applied. Thus I assume
that assignment is a thinko, isn't it?

-- 
Antonin Houska
Web: https://www.cybertec-postgresql.com

В списке pgsql-hackers по дате отправления
От: Amit Langote
Дата:
От: Alexey Bashtanov
Дата:
FAQ