Import Upstream version 5.0.3

parent c55203c4
Metadata-Version: 1.1
Name: PyGreSQL
Version: 5.0.2
Version: 5.0.3
Summary: Python PostgreSQL Interfaces
Home-page: http://www.pygresql.org
Author: D'Arcy J. M. Cain
......
Metadata-Version: 1.1
Name: PyGreSQL
Version: 5.0.2
Version: 5.0.3
Summary: Python PostgreSQL Interfaces
Home-page: http://www.pygresql.org
Author: D'Arcy J. M. Cain
......
......@@ -3,12 +3,12 @@ PyGreSQL Announcements
======================
---------------------------------
Release of PyGreSQL version 5.0.2
Release of PyGreSQL version 5.0.3
---------------------------------
Release 5.0.2 of PyGreSQL.
Release 5.0.3 of PyGreSQL.
It is available at: http://pygresql.org/files/PyGreSQL-5.0.2.tar.gz.
It is available at: http://pygresql.org/files/PyGreSQL-5.0.3.tar.gz.
If you are running NetBSD, look in the packages directory under databases.
There is also a package in the FreeBSD ports collection.
......
ChangeLog
=========
Version 5.0.2 (2016-09-08)
Version 5.0.3 (2016-12-10)
--------------------------
- 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.
Version 5.0.2 (2016-09-13)
--------------------------
- Fixed an infinite recursion problem in the DB wrapper class of the classic
module that could occur when the underlying connection could not be properly
......
......@@ -37,7 +37,7 @@ interval datetime.timedelta
hstore dict
json, jsonb list or dict
uuid uuid.UUID
array list
array list [#array]_
record tuple
================================== ==================
......@@ -47,6 +47,15 @@ record tuple
.. [#int8] int8 is converted to long in Python 2
.. [#array] The first element of the array will always be the first element
of the Python list, no matter what the lower bound of the PostgreSQL
array is. The information about the start index of the array (which is
usually 1 in PostgreSQL, but can also be different from 1) is ignored
and gets lost in the conversion to the Python list. If you need that
information, you can request it separately with the `array_lower()`
function provided by PostgreSQL.
Adaptation of parameters
------------------------
When you use the higher level methods of the classic :mod:`pg` module like
......
......@@ -321,7 +321,7 @@ in order to allow the caller to work with multiple tables, it is
munged as ``oid(table)`` using the actual name of the table.
Note that since PyGreSQL 5.0 this will return the value of an array
type column as a Python list.
type column as a Python list by default.
insert -- insert a row into a database table
--------------------------------------------
......
......@@ -37,7 +37,7 @@ interval datetime.timedelta
hstore dict
json, jsonb list or dict
uuid uuid.UUID
array list
array list [#array]_
record tuple
================================== ==================
......@@ -47,6 +47,14 @@ record tuple
.. [#int8] int8 is converted to long in Python 2
.. [#array] The first element of the array will always be the first element
of the Python list, no matter what the lower bound of the PostgreSQL
array is. The information about the start index of the array (which is
usually 1 in PostgreSQL, but can also be different from 1) is ignored
and gets lost in the conversion to the Python list. If you need that
information, you can request it separately with the `array_lower()`
function provided by PostgreSQL.
Adaptation of parameters
------------------------
......
......@@ -85,6 +85,13 @@ be necessary to look up certain database settings.
.. versionadded:: 5.0
As of version 5.0.3 you can also use this method to change the typecasting
of PostgreSQL array types. You must run ``set_typecast('anyarray', cast)``
in order to do this. The ``cast`` method must take a string value and a cast
function for the base type and return the array converted to a Python object.
For instance, run ``set_typecast('anyarray', lambda v, c: v)`` to switch off
the casting of arrays completely, and always return them encoded as strings.
.. method:: reset_typecast([typ])
Reset the typecasts for the specified (or all) type(s) to their defaults
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......@@ -62,10 +62,10 @@
<div class="section" id="pygresql-announcements">
<h1>PyGreSQL Announcements<a class="headerlink" href="#pygresql-announcements" title="Permalink to this headline"></a></h1>
<div class="section" id="release-of-pygresql-version-5-0-2">
<h2>Release of PyGreSQL version 5.0.2<a class="headerlink" href="#release-of-pygresql-version-5-0-2" title="Permalink to this headline"></a></h2>
<p>Release 5.0.2 of PyGreSQL.</p>
<p>It is available at: <a class="reference external" href="http://pygresql.org/files/PyGreSQL-5.0.2.tar.gz">http://pygresql.org/files/PyGreSQL-5.0.2.tar.gz</a>.</p>
<div class="section" id="release-of-pygresql-version-5-0-3">
<h2>Release of PyGreSQL version 5.0.3<a class="headerlink" href="#release-of-pygresql-version-5-0-3" title="Permalink to this headline"></a></h2>
<p>Release 5.0.3 of PyGreSQL.</p>
<p>It is available at: <a class="reference external" href="http://pygresql.org/files/PyGreSQL-5.0.3.tar.gz">http://pygresql.org/files/PyGreSQL-5.0.3.tar.gz</a>.</p>
<p>If you are running NetBSD, look in the packages directory under databases.
There is also a package in the FreeBSD ports collection.</p>
<p>Please refer to <a class="reference external" href="changelog.html">changelog.txt</a>
......@@ -104,7 +104,7 @@ for general information.</p>
<h3><a href="index.html">Page contents</a></h3>
<ul>
<li><a class="reference internal" href="#">PyGreSQL Announcements</a><ul>
<li><a class="reference internal" href="#release-of-pygresql-version-5-0-2">Release of PyGreSQL version 5.0.2</a></li>
<li><a class="reference internal" href="#release-of-pygresql-version-5-0-3">Release of PyGreSQL version 5.0.3</a></li>
</ul>
</li>
</ul>
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......@@ -83,8 +83,23 @@
<div class="section" id="changelog">
<h1>ChangeLog<a class="headerlink" href="#changelog" title="Permalink to this headline"></a></h1>
<div class="section" id="version-5-0-2-2016-09-08">
<h2>Version 5.0.2 (2016-09-08)<a class="headerlink" href="#version-5-0-2-2016-09-08" title="Permalink to this headline"></a></h2>
<div class="section" id="version-5-0-3-2016-12-10">
<h2>Version 5.0.3 (2016-12-10)<a class="headerlink" href="#version-5-0-3-2016-12-10" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>It is now possible to use a custom array cast function by changing
the type caster for the &#8216;anyarray&#8217; type. For instance, by calling
set_typecast(&#8216;anyarray&#8217;, 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.</li>
<li>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.</li>
</ul>
</div>
<div class="section" id="version-5-0-2-2016-09-13">
<h2>Version 5.0.2 (2016-09-13)<a class="headerlink" href="#version-5-0-2-2016-09-13" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Fixed an infinite recursion problem in the DB wrapper class of the classic
module that could occur when the underlying connection could not be properly
......@@ -688,7 +703,8 @@ and taken away from library</li>
<h3><a href="../index.html">Page contents</a></h3>
<ul>
<li><a class="reference internal" href="#">ChangeLog</a><ul>
<li><a class="reference internal" href="#version-5-0-2-2016-09-08">Version 5.0.2 (2016-09-08)</a></li>
<li><a class="reference internal" href="#version-5-0-3-2016-12-10">Version 5.0.3 (2016-12-10)</a></li>
<li><a class="reference internal" href="#version-5-0-2-2016-09-13">Version 5.0.2 (2016-09-13)</a></li>
<li><a class="reference internal" href="#version-5-0-1-2016-08-18">Version 5.0.1 (2016-08-18)</a></li>
<li><a class="reference internal" href="#version-5-0-2016-03-20">Version 5.0 (2016-03-20)</a></li>
<li><a class="reference internal" href="#version-4-2-2-2016-03-18">Version 4.2.2 (2016-03-18)</a></li>
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......@@ -153,7 +153,7 @@ explained in the next two sections.</p>
<td>uuid.UUID</td>
</tr>
<tr class="row-even"><td>array</td>
<td>list</td>
<td>list <a class="footnote-reference" href="#array" id="id2">[2]</a></td>
</tr>
<tr class="row-odd"><td>record</td>
<td>tuple</td>
......@@ -163,12 +163,24 @@ explained in the next two sections.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p>Elements of arrays and records will also be converted accordingly.</p>
<table class="last docutils footnote" frame="void" id="int8" rules="none">
<table class="docutils footnote" frame="void" id="int8" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a class="fn-backref" href="#id1">[1]</a></td><td>int8 is converted to long in Python 2</td></tr>
</tbody>
</table>
<table class="last docutils footnote" frame="void" id="array" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a class="fn-backref" href="#id2">[2]</a></td><td>The first element of the array will always be the first element
of the Python list, no matter what the lower bound of the PostgreSQL
array is. The information about the start index of the array (which is
usually 1 in PostgreSQL, but can also be different from 1) is ignored
and gets lost in the conversion to the Python list. If you need that
information, you can request it separately with the <cite>array_lower()</cite>
function provided by PostgreSQL.</td></tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="adaptation-of-parameters">
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......@@ -542,7 +542,7 @@ the existing values when row was passed as aa dictionary.</p>
in order to allow the caller to work with multiple tables, it is
munged as <code class="docutils literal"><span class="pre">oid(table)</span></code> using the actual name of the table.</p>
<p>Note that since PyGreSQL 5.0 this will return the value of an array
type column as a Python list.</p>
type column as a Python list by default.</p>
</div>
<div class="section" id="insert-insert-a-row-into-a-database-table">
<h2>insert &#8211; insert a row into a database table<a class="headerlink" href="#insert-insert-a-row-into-a-database-table" title="Permalink to this headline"></a></h2>
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......@@ -153,7 +153,7 @@ explained in the next two sections.</p>
<td>uuid.UUID</td>
</tr>
<tr class="row-even"><td>array</td>
<td>list</td>
<td>list <a class="footnote-reference" href="#array" id="id2">[2]</a></td>
</tr>
<tr class="row-odd"><td>record</td>
<td>tuple</td>
......@@ -163,12 +163,24 @@ explained in the next two sections.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p>Elements of arrays and records will also be converted accordingly.</p>
<table class="last docutils footnote" frame="void" id="int8" rules="none">
<table class="docutils footnote" frame="void" id="int8" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a class="fn-backref" href="#id1">[1]</a></td><td>int8 is converted to long in Python 2</td></tr>
</tbody>
</table>
<table class="last docutils footnote" frame="void" id="array" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a class="fn-backref" href="#id2">[2]</a></td><td>The first element of the array will always be the first element
of the Python list, no matter what the lower bound of the PostgreSQL
array is. The information about the start index of the array (which is
usually 1 in PostgreSQL, but can also be different from 1) is ignored
and gets lost in the conversion to the Python list. If you need that
information, you can request it separately with the <cite>array_lower()</cite>
function provided by PostgreSQL.</td></tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="adaptation-of-parameters">
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......@@ -198,6 +198,12 @@ be necessary to look up certain database settings.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 5.0.</span></p>
</div>
<p>As of version 5.0.3 you can also use this method to change the typecasting
of PostgreSQL array types. You must run <code class="docutils literal"><span class="pre">set_typecast('anyarray',</span> <span class="pre">cast)</span></code>
in order to do this. The <code class="docutils literal"><span class="pre">cast</span></code> method must take a string value and a cast
function for the base type and return the array converted to a Python object.
For instance, run <code class="docutils literal"><span class="pre">set_typecast('anyarray',</span> <span class="pre">lambda</span> <span class="pre">v,</span> <span class="pre">c:</span> <span class="pre">v)</span></code> to switch off
the casting of arrays completely, and always return them encoded as strings.</p>
<dl class="method">
<dt id="pgdb.reset_typecast">
<code class="descclassname">pgdb.</code><code class="descname">reset_typecast</code><span class="sig-paren">(</span><span class="optional">[</span><em>typ</em><span class="optional">]</span><span class="sig-paren">)</span><a class="headerlink" href="#pgdb.reset_typecast" title="Permalink to this definition"></a></dt>
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......@@ -102,10 +102,10 @@
</dd>
<dt>A <strong>Win32 installer</strong> for various Python versions is available at</dt>
<dd><ul class="first last simple">
<li><a class="reference external" href="http://pygresql.org/files/PyGreSQL-5.0.2.win-amd64-py2.6.exe">http://pygresql.org/files/PyGreSQL-5.0.2.win-amd64-py2.6.exe</a></li>
<li><a class="reference external" href="http://pygresql.org/files/PyGreSQL-5.0.2.win-amd64-py2.7.exe">http://pygresql.org/files/PyGreSQL-5.0.2.win-amd64-py2.7.exe</a></li>
<li><a class="reference external" href="http://pygresql.org/files/PyGreSQL-5.0.2.win-amd64-py3.4.exe">http://pygresql.org/files/PyGreSQL-5.0.2.win-amd64-py3.4.exe</a></li>
<li><a class="reference external" href="http://pygresql.org/files/PyGreSQL-5.0.2.win-amd64-py3.5.exe">http://pygresql.org/files/PyGreSQL-5.0.2.win-amd64-py3.5.exe</a></li>
<li><a class="reference external" href="http://pygresql.org/files/PyGreSQL-5.0.3.win-amd64-py2.6.exe">http://pygresql.org/files/PyGreSQL-5.0.3.win-amd64-py2.6.exe</a></li>
<li><a class="reference external" href="http://pygresql.org/files/PyGreSQL-5.0.3.win-amd64-py2.7.exe">http://pygresql.org/files/PyGreSQL-5.0.3.win-amd64-py2.7.exe</a></li>
<li><a class="reference external" href="http://pygresql.org/files/PyGreSQL-5.0.3.win-amd64-py3.4.exe">http://pygresql.org/files/PyGreSQL-5.0.3.win-amd64-py3.4.exe</a></li>
<li><a class="reference external" href="http://pygresql.org/files/PyGreSQL-5.0.3.win-amd64-py3.5.exe">http://pygresql.org/files/PyGreSQL-5.0.3.win-amd64-py3.5.exe</a></li>
</ul>
</dd>
</dl>
......
......@@ -19,7 +19,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......@@ -99,7 +99,7 @@ most other platforms where PostgreSQL and Python is running. It is based
on the PyGres95 code written by Pascal Andre (<a class="reference external" href="mailto:andre&#37;&#52;&#48;chimay&#46;via&#46;ecp&#46;fr">andre<span>&#64;</span>chimay<span>&#46;</span>via<span>&#46;</span>ecp<span>&#46;</span>fr</a>).
D&#8217;Arcy (<a class="reference external" href="mailto:darcy&#37;&#52;&#48;druid&#46;net">darcy<span>&#64;</span>druid<span>&#46;</span>net</a>) renamed it to PyGreSQL starting with
version 2.0 and serves as the &#8220;BDFL&#8221; of PyGreSQL.</p>
<p>The current version PyGreSQL 5.0.2 needs PostgreSQL 9.0 or newer and Python 2.6,
<p>The current version PyGreSQL 5.0.3 needs PostgreSQL 9.0 or newer and Python 2.6,
2.7 or 3.3 to 3.5. If you need to support older PostgreSQL versions or older
Python 2.x versions, you can resort to PyGreSQL 4.x that still supports them.</p>
</div>
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
......@@ -18,7 +18,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '5.0.2',
VERSION: '5.0.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
......
This diff is collapsed.
......@@ -3,12 +3,12 @@ PyGreSQL Announcements
======================
---------------------------------
Release of PyGreSQL version 5.0.2
Release of PyGreSQL version 5.0.3
---------------------------------
Release 5.0.2 of PyGreSQL.
Release 5.0.3 of PyGreSQL.
It is available at: http://pygresql.org/files/PyGreSQL-5.0.2.tar.gz.
It is available at: http://pygresql.org/files/PyGreSQL-5.0.3.tar.gz.
If you are running NetBSD, look in the packages directory under databases.
There is also a package in the FreeBSD ports collection.
......
......@@ -70,7 +70,7 @@ copyright = '2016, ' + author
# The short X.Y version.
version = '5.0'
# The full version, including alpha/beta/rc tags.
release = '5.0.2'
release = '5.0.3'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
......
ChangeLog
=========
Version 5.0.2 (2016-09-08)
Version 5.0.3 (2016-12-10)
--------------------------
- 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