Re: pgbench: new feature allowing to launch shell commands

Поиск
Список
Период
Сортировка
От Takahiro Itagaki
Тема Re: pgbench: new feature allowing to launch shell commands
Дата
Msg-id 20091209151232.36C3.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: pgbench: new feature allowing to launch shell commands  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: pgbench: new feature allowing to launch shell commands  (Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>)
Список pgsql-hackers
Michael Paquier <michael.paquier@gmail.com> wrote:

> Please find attached the latest version of the patch,
> with the threading bug corrected and the documentation updated as well.

Why do you use BUFFER_SIZE-1 for snprintf?  snprintf(commandShell, SHELL_COMMAND_SIZE-1, ...)
Trailing nulls are also included in the length, so  snprintf(commandShell, SHELL_COMMAND_SIZE, ...)
would be ok. (removed -1)

Other parts look fine, except an empty tag <replaceable></> in the
documentation. Is it a typo?

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center




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

Предыдущее
От: Takahiro Itagaki
Дата:
Сообщение: Re: EXPLAIN BUFFERS
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Adding support for SE-Linux security