Re: Accidental setting of XLogReaderState.private_data ?
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Accidental setting of XLogReaderState.private_data ? |
| Дата | |
| Msg-id | 21321.1555340778@sss.pgh.pa.us обсуждение |
| Ответ на | Accidental setting of XLogReaderState.private_data ? (Antonin Houska <ah@cybertec.at>) |
| Ответы |
Re: Accidental setting of XLogReaderState.private_data ?
|
| Список | pgsql-hackers |
Antonin Houska <ah@cybertec.at> writes:
> 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?
Hmm. The second, duplicate assignment is surely pointless, but I think
that setting the ctx as the private_data is a good idea. It hardly seems
out of the question that it might be needed in future.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера