Re: Problem with ZPsycopgDA’s pool

Поиск
Список
Период
Сортировка
От Nicolas Boullis
Тема Re: Problem with ZPsycopgDA’s pool
Дата
Msg-id 20140417221200.GB6043@coco.home
обсуждение исходный текст
Ответ на Re: Problem with ZPsycopgDA’s pool  (Nicolas Boullis <postgresql@ilcode.fr>)
Ответы Re: Problem with ZPsycopgDA’s pool  (Nicolas Boullis <postgresql@ilcode.fr>)
Список psycopg
Hi,

On Wed, Apr 16, 2014 at 10:47:21PM +0200, Nicolas Boullis wrote:
>
> Ideally, I think the connection should be initialized the first time it
> is used for a given page. That would be perfecty compatible with a
> per-dsn pool. But, with my very limited knowledge of Zope internals, I
> can’t find a way to get such a behaviour.

I thought a little more about this, and I think I worked out a way to
implement this.

Here is a quick&dirty patch that does it.

I gave it a try and it works for me; at least I cannot reproduce anymore
the failures I experienced before.

Please tell me what you think of this patch.


Cheers,

--
Nicolas Boullis

Вложения

В списке psycopg по дате отправления:

Предыдущее
От: Nicolas Boullis
Дата:
Сообщение: Re: Problem with ZPsycopgDA’s pool
Следующее
От: Dorian Hoxha
Дата:
Сообщение: Altering array(composite-types) without breaking code when inserting them