Re: PGconn thread safety

Поиск
Список
Период
Сортировка
От Shridhar Daithankar
Тема Re: PGconn thread safety
Дата
Msg-id 200302071320.20996.shridhar_daithankar@persistent.co.in
обсуждение исходный текст
Ответ на Re: PGconn thread safety  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: PGconn thread safety
Re: PGconn thread safety
Список pgsql-general
On Friday 07 February 2003 12:44 pm, you wrote:
> Neil Conway <neilc@samurai.com> writes:
> That's the theory anyway.  I believe it actually is free of unsafe uses
> of static variables.  However, someone recently pointed out that it uses
> some libc routines that probably aren't thread-safe; so there's some
> cleanup yet to do before we can claim real thread safety.

Well, I ran a mutlithreaded test where around 30 connections were hammered in
a mutlihtreaded servers using libpq for 100,000 transactions. I didn't notice
any data inconsistency.

Only noticable thing was that postgresql was not returning even simplest
result in less than 200 ms. So in order to achieve a good throughput, I had
to up the number of connections. The max throughput. was 200ms/no. of
connections.

but that is a different issue..

 Shridhar





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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: AllocSetAlloc() error message
Следующее
От: "Jules Alberts"
Дата:
Сообщение: Re: how to determine OID of the row I just inserted???