<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/psycopg2.git/tests, 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>Added decorator to clean up the adaptation mappings after tests</title>
<updated>2019-09-04T17:17:51+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2019-09-04T13:58:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=f08019e3568dd845bbefaffbe27c4909cf491d15'/>
<id>f08019e3568dd845bbefaffbe27c4909cf491d15</id>
<content type='text'>
Many tests were doing it manually, some weren't doing it and resulted in
failure if run in different order.

Close #948
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Many tests were doing it manually, some weren't doing it and resulted in
failure if run in different order.

Close #948
</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>improve the NamedTupleCursor cache test</title>
<updated>2019-06-04T11:45:37+00:00</updated>
<author>
<name>Changaco</name>
<email>changaco@changaco.oy.lc</email>
</author>
<published>2019-06-04T11:44:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=527592a0a52b8c6a09535e785dac63c36cf25ada'/>
<id>527592a0a52b8c6a09535e785dac63c36cf25ada</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>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>Test notifies are received ok polling an async cur</title>
<updated>2019-04-05T18:04:48+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2019-04-05T17:24:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=46106e1b78334114f533d4979e8d9267654f9cbd'/>
<id>46106e1b78334114f533d4979e8d9267654f9cbd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle ok poll() without a cursor having executed queries</title>
<updated>2019-04-05T17:04:55+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2019-04-05T17:04:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=755a128ffbeef2813a1f5bcf1bbba629f37f0f49'/>
<id>755a128ffbeef2813a1f5bcf1bbba629f37f0f49</id>
<content type='text'>
Close #887
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Close #887
</pre>
</div>
</content>
</entry>
<entry>
<title>Store WAL end pointer in the replication cursor</title>
<updated>2019-03-30T21:23:11+00:00</updated>
<author>
<name>Martins Grunskis</name>
<email>martins@grunskis.com</email>
</author>
<published>2018-10-29T08:50:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=f946042a79fc340d249589ff6acb8fdcb671e9f1'/>
<id>f946042a79fc340d249589ff6acb8fdcb671e9f1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow tests to be ignored if dynamic binding failed</title>
<updated>2019-03-18T19:49:16+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2019-03-18T19:49:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=953bc66ca66fd8bbc18086bba9218072a9dfb8e7'/>
<id>953bc66ca66fd8bbc18086bba9218072a9dfb8e7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
