Re: SOMAXCONN (was Re: Solaris source code)

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: SOMAXCONN (was Re: Solaris source code)
Дата
Msg-id 200107102125.f6ALPwV10005@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: SOMAXCONN (was Re: Solaris source code)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Could we test SOMAXCONN and set PG_SOMAXCONN to 1000 only if SOMAXCONN1
> > is less than 1000?
> 
> Why bother?
> 
> If you've got some plausible scenario where 1000 is too small, we could
> just as easily make it 10000.  I don't see the need for yet another
> configure test for this.

I was thinking:
#if SOMAXCONN >= 1000#define PG_SOMAXCONN SOMAXCONN#else#define PG_SOMAXCONN 1000#endif

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: "John Moore"
Дата:
Сообщение: Re: [OT] Any major users of postgresql?
Следующее
От: "ma li"
Дата:
Сообщение: i need help for JDBC