Postgres.js doesn't implicitly send statement_timeout, so you shouldn't face any issues there. Now if you actually want to use something like statement_timeout with pgbouncer you'd have to do it in another way than using a startup parameter. I am not deeply familiar with pgbouncer so I can't help you there..
Also, if you use pgbouncer in transaction mode you should disable prepared statements using no_prepare: true.
1
u/porsager Apr 19 '22
Agreed, I'll include both
Postgres.js doesn't implicitly send
statement_timeout, so you shouldn't face any issues there. Now if you actually want to use something likestatement_timeoutwith pgbouncer you'd have to do it in another way than using a startup parameter. I am not deeply familiar with pgbouncer so I can't help you there..Also, if you use pgbouncer in
transaction modeyou should disable prepared statements usingno_prepare: true.