diff options
author | darcy <darcy> | 2016-12-11 11:25:52 +0000 |
---|---|---|
committer | darcy <darcy> | 2016-12-11 11:25:52 +0000 |
commit | bd7dbc630283f89a163821a8b6cdbcb422e2f3f7 (patch) | |
tree | 7fa34afa43d477f4f8387e18ce8e8cc4b2fb165e /databases/nss-pgsql | |
parent | aad7360138b69dc03ecf9d6fa5e8cc746f587195 (diff) | |
download | pkgsrc-bd7dbc630283f89a163821a8b6cdbcb422e2f3f7.tar.gz |
Upgrade to 5.0.3.
- It is now possible to use a custom array cast function by changing
the type caster for the 'anyarray' type. For instance, by calling
set_typecast('anyarray', lambda v, c: v) you can have arrays returned
as strings instead of lists. Note that in the pg module, you can also
call set_array(False) in order to return arrays as strings.
- The namedtuple classes used for the rows of query results are now cached
and reused internally, since creating namedtuples classes in Python is a
somewhat expensive operation. By default the cache has a size of 1024
entries, but this can be changed with the set_row_factory_size() function.
In certain cases this change can notably improve the performance.
Diffstat (limited to 'databases/nss-pgsql')
0 files changed, 0 insertions, 0 deletions