Re: Streaming replication for psycopg2 - Mailing list pgsql-hackers

From Shulgin, Oleksandr
Subject Re: Streaming replication for psycopg2
Date
Msg-id CACACo5QzbUBW5VQTP-5BYJD+vbkNEib4_qkCL_jV6TWqe8eUjg@mail.gmail.com
Whole thread Raw
In response to Re: Streaming replication for psycopg2  ("Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>)
Responses Re: Streaming replication for psycopg2
List pgsql-hackers
On Thu, Jun 4, 2015 at 5:49 PM, Shulgin, Oleksandr <oleksandr.shulgin@zalando.de> wrote:
On Tue, Jun 2, 2015 at 2:23 PM, Shulgin, Oleksandr <oleksandr.shulgin@zalando.de> wrote:
>
> Hello,
>
> I've submitted a patch to psycopg2 to support streaming replication protocol (COPY_BOTH): https://github.com/psycopg/psycopg2/pull/322
>
> It would be great if more people had a chance to take a look and provide feedback about it.  In particular, please see example usage at this github comment[1]. Some bikeshedding is really needed here. :-)

Hello again,

I have updated the pull request above to address the feedback I've gathered from using this construct internally and from other sources.  Now included, the lower level asynchronous interface that gives the user more control, for the price of doing select() and keeping track of keepalive timeouts manually.

It would be nice if someone could review this.  The final look can be found by using this link (docs included): https://github.com/psycopg/psycopg2/pull/322/files

Thanks.
--
Alex

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Solaris testers wanted for strxfrm() behavior
Next
From: Pavel Stehule
Date:
Subject: Re: pg_restore -t should match views, matviews, and foreign tables