Closed mamcx closed 2 years ago
None of the types in that code are defined by this library. If you have a question about a connection pool, you should probably ask that on the repository for that library.
I wonder if this could be caused by the way tokio-postgres
implements pipelining. The only way I can imagine this happening is a connection still executing queries while it's being reused by another worker. I tried coming up with an explanation here:
After I move to async, I get sometimes the behavior of certain data sent to another schema, and that is terrible because this is for a multi-tenant setup.
I run all inside actix, and execute in each request:
This works most of the time but is unclear to me how or when this fails. It could have been related to the error "current transaction is aborted, commands ignored until end of transaction block" but I'm unsure.
I wonder if this could be related to the use of connection pools:
So:
How to be certain the schema scoping is valid in each request?