Re: [Patch] Data type cache to speed up query tool

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: [Patch] Data type cache to speed up query tool
Дата
Msg-id CA+OCxowHwAN1LpJOGtekxr374LVtHeqOOWOwNxqXDmu9wUtA-Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [Patch] Data type cache to speed up query tool  (aiht <aihtdikh@gmail.com>)
Список pgadmin-hackers
Hi

On Mon, Nov 26, 2012 at 1:12 AM, aiht <aihtdikh@gmail.com> wrote:
>
>
>>> * When a pgConn is Duplicate()d, its cache is copied for the new
>>> connection
>>> to use, but as far as I can see this is only called when doing File->New
>>> Window in the query tool. If more pgConns are constructed by Duplicate()
>>> then caching may be more efficient.
>>
>> Not so sure about that, as mentioned above.
>
> Yeah, now that I've looked closer it doesn't seem so easy to Duplicate()
> other connections. It seems safe in the query tool because the new window
> uses the same host/db/etc. But perhaps I am missing some points about e.g.
> schema search paths?

It should be safe - we're only duplicating the connection parameters
and then opening a new connection with them. We're not copying session
state or anything like that.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: aiht
Дата:
Сообщение: Re: [Patch] Data type cache to speed up query tool
Следующее
От: Magnus Hagander
Дата:
Сообщение: pgAdmin III commit: Fix incorrect JOIN in query to list databases