Re: opening connection more expensive than closing connection?

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема Re: opening connection more expensive than closing connection?
Дата
Msg-id 4D6FBC67.30307@gmail.com
обсуждение исходный текст
Ответ на opening connection more expensive than closing connection?  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-general
top posting my self to clarify, since the title is in fact inverted:
close might be more expensive the open.


On 03/03/2011 08:28 AM, Rob Sargent wrote:
> A developer here accidentally flooded a server with connection opens and
> closes, essentially one per transaction during a multi-threaded data
> migration process.
>
> We were curious if this suggests that connection clean up is more
> expensive than creation thereby exhausting resources, or if perhaps the
> server wasn't returning to the essentially backgrounded clean-up task
> adroitly (enough)?
>
> Don't worry we are now using a connection pool for the migration, but
> the situation was, um, er, entertaining.  The server side said
> eof-from-client, the client side said many variations of cannot-connect,
> then they would work out their differences briefly and do the same dance
> over again after sufficient connections.
>
> Cheers,
> rjs
>
>
>
>

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

Предыдущее
От: Maximilian Tyrtania
Дата:
Сообщение: invalid byte sequence
Следующее
От: Rob Sargent
Дата:
Сообщение: closing connection more expensive than opening connection?