Re: Problem with psycopg2 and asyncio - Mailing list psycopg

From Daniele Varrazzo
Subject Re: Problem with psycopg2 and asyncio
Date
Msg-id CA+mi_8YxUkWBemjkhYT1UQgAaH+4D5emnYX+jgg6G3cJRdMD6Q@mail.gmail.com
Whole thread Raw
In response to Re: Problem with psycopg2 and asyncio  ("Frank Millman" <frank@chagford.com>)
Responses Re: Problem with psycopg2 and asyncio
List psycopg
On Tue, Mar 1, 2016 at 5:24 AM, Frank Millman <frank@chagford.com> wrote:
> On 29/02/16 18:07, Daniele Varrazzo wrote:
>>
>> On Mon, Feb 29, 2016 at 2:52 PM, Frank Millman <frank@chagford.com> wrote:
>>
>> > Of course I may just be doing something silly, in which case I would be
>> > delighted if someone pointed it out.
>>
>> Are you running psycopg in async mode or in green mode?
>>
> To be honest, I don’t know what that means, so I am probably running in
> green mode.

I think you should have that under control if you want psycopg to
perform ok in asynchronous environment.

Call psycopg2.extensions.get_wait_callback(). If it returns None, then
psycopg is simply blocking.

-- Daniele


psycopg by date:

Previous
From: "Frank Millman"
Date:
Subject: Re: Problem with psycopg2 and asyncio
Next
From: "Frank Millman"
Date:
Subject: Re: Problem with psycopg2 and asyncio