<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/psycopg2.git/lib, branch issue-template</title>
<subtitle>github.com: psycopg/psycopg2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/'/>
<entry>
<title>Making my linter happy</title>
<updated>2019-06-07T17:20:36+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2019-06-07T17:20:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=be8e1a26326edb6b094a764797460181ae8b33b6'/>
<id>be8e1a26326edb6b094a764797460181ae8b33b6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix `NamedTupleCursor._cached_make_nt`</title>
<updated>2019-06-04T12:30:30+00:00</updated>
<author>
<name>Changaco</name>
<email>changaco@changaco.oy.lc</email>
</author>
<published>2019-06-04T12:29:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=842e383c0c0e61f03ab6aa822fdf14c61c43d394'/>
<id>842e383c0c0e61f03ab6aa822fdf14c61c43d394</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Smart replication feedback</title>
<updated>2019-05-06T08:27:44+00:00</updated>
<author>
<name>Alexander Kukushkin</name>
<email>alexander.kukushkin@zalando.de</email>
</author>
<published>2019-05-06T08:27:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=6cff5a3e089f155519765f9cdd49ef78b23ab740'/>
<id>6cff5a3e089f155519765f9cdd49ef78b23ab740</id>
<content type='text'>
This commit makes psycopg2 responsible for sending the status update
(feedback) messages to the server regardless of whether a synchronous or
asynchronous connection is used.

Feedback is sent every *status_update* (default value is 10) seconds,
which could be configured by passing a corresponding parameter to the
`start_replication()` or `start_replication_expert()` methods.
The actual feedback message is sent by the
`pq_read_replication_message()` when the *status_update* timeout is
reached.

The default behavior of the `send_feedback()` method is changed.
It doesn't send a feedback message on every call anymore but just
updates internal structures. There is still a way to *force* sending
a message if *force* or *reply* parameters are set.

The new approach has certain advantages:
1. The client can simply call the `send_feedback()` for every
   processed message and the library will take care of not overwhelming
   the server. Actually, in the synchronous mode it is even mandatory
   to confirm every processed message.
2. The library tracks internally the pointer of the last received
   message which is not keepalive. If the client confirmed the last
   message and after that server sends only keepalives with increasing
   *wal_end*, the library can safely move forward *flush* position to
   the *wal_end* and later automatically report it to the server.

Reporting of the *wal_end* received from keepalive messages is very
important. Not doing so casing:
1. Excessive disk usage, because the replication slot prevents from
   WAL being cleaned up.
2. The smart and fast shutdown of the server could last indefinitely
   because walsender waits until the client report *flush* position
   equal to the *wal_end*.

This implementation is only extending the existing API and therefore
should not break any of the existing code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit makes psycopg2 responsible for sending the status update
(feedback) messages to the server regardless of whether a synchronous or
asynchronous connection is used.

Feedback is sent every *status_update* (default value is 10) seconds,
which could be configured by passing a corresponding parameter to the
`start_replication()` or `start_replication_expert()` methods.
The actual feedback message is sent by the
`pq_read_replication_message()` when the *status_update* timeout is
reached.

The default behavior of the `send_feedback()` method is changed.
It doesn't send a feedback message on every call anymore but just
updates internal structures. There is still a way to *force* sending
a message if *force* or *reply* parameters are set.

The new approach has certain advantages:
1. The client can simply call the `send_feedback()` for every
   processed message and the library will take care of not overwhelming
   the server. Actually, in the synchronous mode it is even mandatory
   to confirm every processed message.
2. The library tracks internally the pointer of the last received
   message which is not keepalive. If the client confirmed the last
   message and after that server sends only keepalives with increasing
   *wal_end*, the library can safely move forward *flush* position to
   the *wal_end* and later automatically report it to the server.

Reporting of the *wal_end* received from keepalive messages is very
important. Not doing so casing:
1. Excessive disk usage, because the replication slot prevents from
   WAL being cleaned up.
2. The smart and fast shutdown of the server could last indefinitely
   because walsender waits until the client report *flush* position
   equal to the *wal_end*.

This implementation is only extending the existing API and therefore
should not break any of the existing code.
</pre>
</div>
</content>
</entry>
<entry>
<title>More robust RealDictRow population</title>
<updated>2019-04-06T20:17:28+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2019-04-06T20:17:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=4058f363d69159b7c0193b6bd873aa0ee0621a89'/>
<id>4058f363d69159b7c0193b6bd873aa0ee0621a89</id>
<content type='text'>
In the presence of repeated columns the mapping would have remained into
into the dictionary. Now it is removed.

Fix #884
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the presence of repeated columns the mapping would have remained into
into the dictionary. Now it is removed.

Fix #884
</pre>
</div>
</content>
</entry>
<entry>
<title>RealDictRow inherits from OrderedDict</title>
<updated>2019-04-06T18:43:31+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2019-04-06T18:39:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=cc815e8e8d33d5f39e602eebd6f7341952dfe058'/>
<id>cc815e8e8d33d5f39e602eebd6f7341952dfe058</id>
<content type='text'>
Now its state is unmodified, so apart from special-casing creation
and initial population can work unmodified, and all the desired
properties just work (modifiability, picklability...)

Close #886.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now its state is unmodified, so apart from special-casing creation
and initial population can work unmodified, and all the desired
properties just work (modifiability, picklability...)

Close #886.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed RealDictCursor.pop()</title>
<updated>2019-04-06T18:43:09+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2019-04-05T18:03:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=21d16b6f6754e5d8ddf10b0d383fe731f13bce8e'/>
<id>21d16b6f6754e5d8ddf10b0d383fe731f13bce8e</id>
<content type='text'>
Addresses #886, but there might be something else broken there.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Addresses #886, but there might be something else broken there.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow 0 as key in the pool</title>
<updated>2019-03-17T18:24:50+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2019-03-17T18:22:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=b4b470c29a635151a65ccedb849aa2ef466df838'/>
<id>b4b470c29a635151a65ccedb849aa2ef466df838</id>
<content type='text'>
Close #848
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Close #848
</pre>
</div>
</content>
</entry>
<entry>
<title>Use PY2, PY3 for conditional code instead of sys.version_info</title>
<updated>2019-03-16T19:54:40+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2019-03-16T17:15:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=dfb301b42be462f5a4f66b12a401753ab441543c'/>
<id>dfb301b42be462f5a4f66b12a401753ab441543c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added PY2, PY3 to compat module</title>
<updated>2019-03-16T19:54:40+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2019-03-16T16:51:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=f4a2630f1ae48594d8c300ef6246b847dd78de3d'/>
<id>f4a2630f1ae48594d8c300ef6246b847dd78de3d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unnecessary `except ImportError` for Python datetime types</title>
<updated>2019-03-16T16:35:51+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2019-03-14T01:21:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=8685120485cdc4516f0c46ba2c4968e8bc6b80a2'/>
<id>8685120485cdc4516f0c46ba2c4968e8bc6b80a2</id>
<content type='text'>
The Python datetime module is available on all supported platforms. The
types are always available and never raise an ImportError.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Python datetime module is available on all supported platforms. The
types are always available and never raise an ImportError.
</pre>
</div>
</content>
</entry>
</feed>
