2010-11-06 17:50:39 +03:00
|
|
|
What's new in psycopg 2.3.0
|
|
|
|
---------------------------
|
2010-11-05 13:07:25 +03:00
|
|
|
|
2010-11-06 17:50:39 +03:00
|
|
|
psycopg 2.3 aims to expose some new features introduced in PostgreSQL 9.0.
|
2010-11-05 13:07:25 +03:00
|
|
|
|
2010-11-06 17:50:39 +03:00
|
|
|
* New features related to features introduced in PostgreSQL 9.0:
|
2010-11-05 13:07:25 +03:00
|
|
|
|
|
|
|
- `dict` to `hstore` adapter and `hstore` to `dict` typecaster, using both
|
|
|
|
9.0 and pre-9.0 syntax.
|
|
|
|
- Two-phase commit protocol support as per DBAPI specification.
|
|
|
|
- Support for payload in notifications received from the backed.
|
2010-11-06 04:39:43 +03:00
|
|
|
- namedtuple returning cursor.
|
2010-11-05 13:07:25 +03:00
|
|
|
|
2010-11-06 17:50:39 +03:00
|
|
|
* Other features and changes:
|
2010-11-05 13:07:25 +03:00
|
|
|
|
|
|
|
- `mogrify()` now supports unicode queries.
|
2010-11-08 04:35:06 +03:00
|
|
|
- subclasses of a type that can be adapted are adapted as the superclass.
|
2010-11-05 13:07:25 +03:00
|
|
|
- `errorcodes` knows a couple of new codes introduced in PostgreSQL 9.0.
|
2010-11-06 17:50:39 +03:00
|
|
|
- Dropped deprecated Psycopg "own quoting".
|
2010-11-05 13:07:25 +03:00
|
|
|
- Never issue a ROLLBACK on close/GC. This behaviour was introduced as a bug
|
|
|
|
in release 2.2, but trying to send a command while being destroyed has been
|
|
|
|
considered not safe.
|
|
|
|
|
|
|
|
* Bug fixes:
|
|
|
|
|
|
|
|
- Fixed use of `PQfreemem` instead of `free` in binary typecaster.
|
|
|
|
- Fixed access to freed memory in `conn_get_isolation_level()`.
|
2010-11-11 14:54:43 +03:00
|
|
|
- Fixed crash during Decimal adaptation with a few 2.5.x Python versions
|
|
|
|
(ticket #7).
|
|
|
|
- Fixed notices order (ticket #9).
|
2010-11-05 13:07:25 +03:00
|
|
|
|
2010-11-06 17:50:39 +03:00
|
|
|
|
|
|
|
What's new in psycopg 2.2.2
|
|
|
|
---------------------------
|
|
|
|
|
|
|
|
* Bux fixes:
|
|
|
|
|
|
|
|
- the call to logging.basicConfig() in pool.py has been dropped: it was
|
|
|
|
messing with some projects using logging (and a library should not
|
|
|
|
initialize the logging system anyway.)
|
|
|
|
- psycopg now correctly handles time zones with seconds in the UTC offset.
|
|
|
|
The old register_tstz_w_secs() function is deprecated and will raise a
|
|
|
|
warning if called.
|
|
|
|
- Exceptions raised by the column iterator are propagated.
|
|
|
|
- Exceptions raised by executemany() interators are propagated.
|
|
|
|
|
|
|
|
|
|
|
|
What's new in psycopg 2.2.1
|
|
|
|
---------------------------
|
|
|
|
|
|
|
|
* Bux fixes:
|
|
|
|
|
|
|
|
- psycopg now builds again on MS Windows.
|
|
|
|
|
|
|
|
|
|
|
|
What's new in psycopg 2.2.0
|
|
|
|
---------------------------
|
|
|
|
|
|
|
|
This is the first release of the new 2.2 series, supporting not just one but
|
|
|
|
two different ways of executing asynchronous queries, thanks to Jan and Daniele
|
|
|
|
(with a little help from me and others, but they did 99% of the work so they
|
|
|
|
deserve their names here in the news.)
|
|
|
|
|
|
|
|
psycopg now supports both classic select() loops and "green" coroutine
|
|
|
|
libraries. It is all in the documentation, so just point your browser to
|
|
|
|
doc/html/advanced.html.
|
|
|
|
|
|
|
|
* Other new features:
|
|
|
|
|
|
|
|
- truncate() method for lobjects.
|
|
|
|
- COPY functions are now a little bit faster.
|
|
|
|
- All builtin PostgreSQL to Python typecasters are now available from the
|
|
|
|
psycopg2.extensions module.
|
|
|
|
- Notifications from the backend are now available right after the execute()
|
|
|
|
call (before client code needed to call isbusy() to ensure NOTIFY
|
|
|
|
reception.)
|
|
|
|
- Better timezone support.
|
|
|
|
- Lots of documentation updates.
|
|
|
|
|
|
|
|
* Bug fixes:
|
|
|
|
|
|
|
|
- Fixed some gc/refcounting problems.
|
|
|
|
- Fixed reference leak in NOTIFY reception.
|
|
|
|
- Fixed problem with PostgreSQL not casting string literals to the correct
|
|
|
|
types in some situations: psycopg now add an explicit cast to dates, times
|
|
|
|
and bytea representations.
|
|
|
|
- Fixed TimestampFromTicks() and TimeFromTicks() for seconds >= 59.5.
|
|
|
|
- Fixed spurious exception raised when calling C typecasters from Python
|
|
|
|
ones.
|