Initialize the prepareThreshold parameter for datasources to the same value that would be used by a non-DataSource created connection. By not setting it, it effectively turned off the use of named statments.
Initialize the prepareThreshold parameter for datasources to the
same value that would be used by a non-DataSource created connection.
By not setting it, it effectively turned off the use of named
statments.

Don't backpatch this as it may cause a surprising behavior change
for users as using named statements can cause plan changes resulting
in performance loss.

tivv/davepgjdbc,tivv/davepgjdbc