Re: BUG #16466: Valgrind detects an invalid read in dblink_open()with a cursor inside a transaction - Mailing list pgsql-bugs

From Alexander Lakhin
Subject Re: BUG #16466: Valgrind detects an invalid read in dblink_open()with a cursor inside a transaction
Date
Msg-id fb147109-0512-8dc7-5e29-7b4b89ed246e@gmail.com
Whole thread Raw
In response to Re: BUG #16466: Valgrind detects an invalid read in dblink_open()with a cursor inside a transaction  (Joe Conway <mail@joeconway.com>)
Responses Re: BUG #16466: Valgrind detects an invalid read in dblink_open()with a cursor inside a transaction  (Joe Conway <mail@joeconway.com>)
List pgsql-bugs
Hello Joe,

27.05.2020 22:58, Joe Conway wrote:
> Hmmm, looks like a couple of the members of rconn are left uninitialized.
>
> When dblink_open() is called *without* an outer transaction it handles the
> initialization for us, but *with* an outer transaction it does not :-(
>
> I think the attached fixes it.
Yes, your patch makes valgrind silent.
Thanks!

Best regards,
Alexander



pgsql-bugs by date:

Previous
From: Joe Conway
Date:
Subject: Re: BUG #16466: Valgrind detects an invalid read in dblink_open()with a cursor inside a transaction
Next
From: PG Bug reporting form
Date:
Subject: BUG #16467: XX000 fun