When using PGBouncer - we have three modes to choose: SESSION, TRANSACTION and STATEMENT.
Out of this three - only when in SESSION mode, we can use LISTEN. On the other other hand, using TRANSACTION mode makes scaling way easier.
This PR adds option to provide arbitrary configuration for notifications and locks, which will open two connections (using given url), allowing to use regular Postgres connection with TRANSACTION mode and only these two (which are needed) in SESSION mode.
When using PGBouncer - we have three modes to choose: SESSION, TRANSACTION and STATEMENT.
Out of this three - only when in SESSION mode, we can use
LISTEN
. On the other other hand, using TRANSACTION mode makes scaling way easier.This PR adds option to provide arbitrary configuration for notifications and locks, which will open two connections (using given url), allowing to use regular Postgres connection with TRANSACTION mode and only these two (which are needed) in SESSION mode.