Re: pgbench - exclude pthread_create() from connection start timing

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: pgbench - exclude pthread_create() from connection start timing
Дата
Msg-id alpine.DEB.2.02.1310060941120.18141@sto
обсуждение исходный текст
Ответ на Re: pgbench - exclude pthread_create() from connection start timing  (Noah Misch <noah@leadboat.com>)
Ответы Re: pgbench - exclude pthread_create() from connection start timing
Список pgsql-hackers
>> Note that this is pretty standard stuff with threads, ISTM that it
>> would solve most of the issues, *but* this is not possible with the
>> "thread fork emulation" implemented by pgbench, which really means
>> no threads at all.
>
> You could do those same things in the fork emulation mode using anonymous
> shared memory, like we do in the server.  That would permit removing the
> current "#ifdef PTHREAD_FORK_EMULATION" wart, too.

Yep, but I'm not sure that would reduce pgbench code complexity. Also, I'm 
not sure of any system used with pgbench that do not have threads, so ISTM 
that the thread fork-emulation hack is more or less useless, and it is 
pretty masochistic to maintain when adding features.

> For the time being, I propose the attached comment patch.

It comment seems very clear to me. I do not understand why it starts with 
XXX, though.

-- 
Fabien.



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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: pgbench progress report improvements - split 3 v2 - A
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Add DISCARD SEQUENCES command.