Re: Improve logging when using Huge Pages

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: Improve logging when using Huge Pages
Дата
Msg-id 20230214041852.GA1190218@nathanxps13
обсуждение исходный текст
Ответ на Re: Improve logging when using Huge Pages  (Justin Pryzby <pryzby@telsasoft.com>)
Ответы Re: Improve logging when using Huge Pages  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-hackers
On Mon, Feb 13, 2023 at 05:22:45PM -0600, Justin Pryzby wrote:
> +        Reports whether huge pages are in use by the current process.
> +        See <xref linkend="guc-huge-pages"/> for more information.

nitpick: Should this say "server" instead of "current process"?

> +static char *huge_pages_active = "unknown"; /* dynamically set */

nitpick: Does this need to be initialized here?

> +    {
> +        {"huge_pages_active", PGC_INTERNAL, PRESET_OPTIONS,
> +            gettext_noop("Indicates whether huge pages are in use."),
> +            NULL,
> +            GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE | GUC_RUNTIME_COMPUTED
> +        },
> +        &huge_pages_active,
> +        "unknown",
> +        NULL, NULL, NULL
> +    },

I'm curious why you chose to make this a string instead of an enum.  There
might be little practical difference, but since there are only three
possible values, I wonder if it'd be better form to make it an enum.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



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

Предыдущее
От: "Anton A. Melnikov"
Дата:
Сообщение: Re: odd buildfarm failure - "pg_ctl: control file appears to be corrupt"
Следующее
От: John Naylor
Дата:
Сообщение: Re: Todo: Teach planner to evaluate multiple windows in the optimal order