This project is archived and is in readonly mode.
The connection setup can be optimized
Reported by Daniele Varrazzo | November 13th, 2010 @ 08:40 PM
We can drop two roundtrip with the server per connection:
-
SET DATESTYLE TO 'ISO'
is retundant if we detect that theDateStyle
setting is as we like, and we can query it withPQparameterStatus
without a roundtrip. -
client_encoding
can be read fromPQparameterStatus
as well, no need forSHOW
.
Comments and changes to this ticket
-
Daniele Varrazzo November 17th, 2010 @ 03:00 AM
- State changed from open to resolved
Done in branch
no-p2
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.