python - pq: Remove the Block interface and fix bugs in Passive. - Mailing list pgsql-committers

From jwp@pgfoundry.org (James William Pye)
Subject python - pq: Remove the Block interface and fix bugs in Passive.
Date
Msg-id 20071108185804.453D2216D0E@pgfoundry.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Remove the Block interface and fix bugs in Passive.

Block was inherently flawed as exceptions thrown by the second read invocation
would potentially cause unrecoverable state loss. That's bad.
(There are exceptions here, but it tends to require much work from the user)

Fix bugs in passive that would cause state-loss in low memory situations.

Modified Files:
--------------
    pq/src:
        buffer.c (r1.5 -> r1.6)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/pq/src/buffer.c.diff?r1=1.5&r2=1.6)
        buffer.py (r1.4 -> r1.5)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/pq/src/buffer.py.diff?r1=1.4&r2=1.5)

Added Files:
-----------
    pq/src:
        pbuffer.py (r1.1)

(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/pq/src/pbuffer.py?rev=1.1&content-type=text/x-cvsweb-markup)

pgsql-committers by date:

Previous
From: jwp@pgfoundry.org (James William Pye)
Date:
Subject: python - pq: Add the 'Queue' class for managing protocol transactions.
Next
From: jwp@pgfoundry.org (James William Pye)
Date:
Subject: python - pq: Bump version and update tests.