Re: Invalid memory access in pg_stat_get_subscription

2022-06-08 Thread Kuntal Ghosh
Hello Tom, On Wed, Jun 8, 2022 at 12:44 AM Tom Lane wrote: > > Kuntal Ghosh writes: > > While exploring some code in logical replication worker > > implementation, I noticed that we're accessing an invalid memory while > > traversing LogicalRepCtx->workers[i]. > > For the above structure, we're

Re: Invalid memory access in pg_stat_get_subscription

2022-06-07 Thread Tom Lane
Kuntal Ghosh writes: > While exploring some code in logical replication worker > implementation, I noticed that we're accessing an invalid memory while > traversing LogicalRepCtx->workers[i]. > For the above structure, we're allocating > max_logical_replication_workers times LogicalRepWorker amoun

Invalid memory access in pg_stat_get_subscription

2022-06-07 Thread Kuntal Ghosh
Hello hackers, While exploring some code in logical replication worker implementation, I noticed that we're accessing an invalid memory while traversing LogicalRepCtx->workers[i]. For the above structure, we're allocating max_logical_replication_workers times LogicalRepWorker amount of memory in A