| От | Tom Lane |
|---|---|
| Тема | Re: Fork-based version of pgbench |
| Дата | |
| Msg-id | 21069.1133492775@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Fork-based version of pgbench ("Qingqing Zhou" <zhouqq@cs.toronto.edu>) |
| Список | pgsql-patches |
"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> "Qingqing Zhou" <zhouqq@cs.toronto.edu> wrote
>> I've threaded it in Win32 ...
> Another thing is that if unix does fork() and windows does _beginthread(),
> then there will be some potential problem. For example, you have to be
> careful to add global variables ...
Yeah. I don't think this is too big a problem, though. The main thing
I had to give up in writing the fork-based version was the ability to
pass any detailed results back from the subprocesses to the parent.
As long as the code works under that constraint, it'll be fine in a
thread-based environment, AFAICS.
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера