Accidental setting of XLogReaderState.private_data ? - Mailing list pgsql-hackers

From Antonin Houska
Subject Accidental setting of XLogReaderState.private_data ?
Date
Msg-id 30563.1555329094@localhost
Whole thread Raw
Responses Re: Accidental setting of XLogReaderState.private_data ?
List pgsql-hackers
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


Attachment

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: partitioning performance tests after recent patches
Next
From: Alexey Bashtanov
Date:
Subject: Re: log bind parameter values on error