Re: Problem with psycopg2 and asyncio

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: Problem with psycopg2 and asyncio
Дата
Msg-id CA+mi_8YxUkWBemjkhYT1UQgAaH+4D5emnYX+jgg6G3cJRdMD6Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Problem with psycopg2 and asyncio  ("Frank Millman" <frank@chagford.com>)
Ответы Re: Problem with psycopg2 and asyncio  ("Frank Millman" <frank@chagford.com>)
Список 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 по дате отправления:

Предыдущее
От: "Frank Millman"
Дата:
Сообщение: Re: Problem with psycopg2 and asyncio
Следующее
От: "Frank Millman"
Дата:
Сообщение: Re: Problem with psycopg2 and asyncio