Re: Memory unit GUC range checks

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Memory unit GUC range checks
Дата
Msg-id 9976fdbf-921d-3abb-4ed0-7251f34373d2@iki.fi
обсуждение исходный текст
Ответ на Memory unit GUC range checks  (Heikki Linnakangas <hlinnaka@iki.fi>)
Ответы Re: Memory unit GUC range checks  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Re: Memory unit GUC range checks  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 16/05/18 15:19, Heikki Linnakangas wrote:
> $ postmaster -c track_activity_query_size=1024TB
> FATAL:  invalid value for parameter "track_activity_query_size": "1024TB"
> HINT:  Valid units for this parameter are "kB", "MB", "GB", and "TB".
> 
> ...
> 
> The HINT in the last message seems wrong: the hint claims that "TB" is
> accepted, yet "1024 TB" was not accepted. And shouldn't the hint also
> mention "B", since we accept that now?
> 
> 
> Testing a setting with GUC_UNIT_KB:
> 
> $ postmaster -c work_mem=102400B
> FATAL:  invalid value for parameter "work_mem": "100000B"
> HINT:  Valid units for this parameter are "kB", "MB", "GB", and "TB".
> 
> This time the hint is accurate, but why is "B" not accepted here? Seems
> inconsistent.

Here's a pretty straightforward fix for these two issues. Any objections 
or better ideas?

- Heikki

Вложения

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Memory unit GUC range checks
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Flexible permissions for REFRESH MATERIALIZED VIEW