I discovered that my application’s performance had degraded by about 15% after 6->7 upgrade. After some investigation, I found the cause: early acquisition of physical connection for each SELECT query.
I have a wrapper around the connection that sets its name via a SQL query (PostgreSQL):
select 1 from set_config('application_name',?, false)
This query is executed every time a connection is opened. Compared to version 6, the number of SELECT queries has increased several-fold (and total execution time).
Thanks for the insight. The increase of the query count is unfortunate, but can have many reasons. Please try to create a reproducer with our test case template and if you are able to reproduce the issue, create a bug ticket in our issue tracker and attach that reproducer.