You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a check that prevents a process from intentionally using another pool in a transaction or with a different connection from the same transaction, even if one is explicitly passed in by the programmer.
Is there an intended way around this? I would like full control over which pool is used, even if one of them is in a transaction state.
Thank you,
Louis
The text was updated successfully, but these errors were encountered:
lpil
changed the title
How to run a query against another pool while in a transaction
How to run a query outside of the transaction while in a transaction
Jun 30, 2024
Maybe exposing query/4 will do it. It accepts a Conn. So to get around this you'd have to checkout a connection and pass it directly, to be explicit you are going around the transaction.
Hello!
There's a check that prevents a process from intentionally using another pool in a transaction or with a different connection from the same transaction, even if one is explicitly passed in by the programmer.
pgo/src/pgo.erl
Lines 95 to 98 in d1989c4
Is there an intended way around this? I would like full control over which pool is used, even if one of them is in a transaction state.
Thank you,
Louis
The text was updated successfully, but these errors were encountered: