[WIP] Reduce likelihood of fdw prepared statement collisions

Started by Marcoalmost 6 years ago1 messageshackers
Jump to latest
#1Marco
marcojoemontagna@gmail.com

Hi All,

I realize using foreign data wrappers with transaction pooling may not be
strictly supported, but for the most part they work. I am however
occasionally noticing errors stemming from the prepared statement names
created by the fdw modify code colliding between sessions/DBs.

Would the development team be open to a patch which somehow makes this less
likely? Something like the attached patch works, but probably isn't ideal?
Perhaps there is a better unique identifier I can use here. I am very new
to the postgres codebase.

Best
*Marco Montagna*

Attachments:

t43621_1
0001-Reduce-likelihood-of-fdw-prepared-statement-collisio.patchtext/x-patch; charset=US-ASCII; name=0001-Reduce-likelihood-of-fdw-prepared-statement-collisio.patchDownload+8-4