Re: Patch: initdb: "'" for QUOTE_PATH (non-windows)

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Patch: initdb: "'" for QUOTE_PATH (non-windows)
Дата
Msg-id C97B3D0C-A6A6-402F-867B-BE8270D185F6@anarazel.de
обсуждение исходный текст
Ответ на Re: Patch: initdb: "'" for QUOTE_PATH (non-windows)  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: Patch: initdb: "'" for QUOTE_PATH (non-windows)  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers

On August 17, 2016 8:15:56 PM PDT, Michael Paquier <michael.paquier@gmail.com> wrote:

>+        { /* pg_ctl command w path, properly quoted */
>+            PQExpBuffer pg_ctl_path = createPQExpBuffer();
>+            printfPQExpBuffer(pg_ctl_path, "%s%spg_ctl",
>+                bin_dir,
>+                (strlen(bin_dir) > 0) ? DIR_SEP : ""
>+            );
>+            appendShellString(start_db_cmd, pg_ctl_path->data);
>+            destroyPQExpBuffer(pg_ctl_path);
>+        }
>
>This is not really project-style to have an independent block. Usually
>those are controlled by for, while or if. 

Besides the comment positioning I'd not say that that is against the usual style, there's a number of such blocks
already. Don't think it's necessarily needed here though...
 
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Patch: initdb: "'" for QUOTE_PATH (non-windows)
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Increasing timeout of poll_query_until for TAP tests