Re: VACUUM (PARALLEL) option processing not using DefElem the way it was intended

Поиск
Список
Период
Сортировка
От Álvaro Herrera
Тема Re: VACUUM (PARALLEL) option processing not using DefElem the way it was intended
Дата
Msg-id 202510081125.ftqalzxsuzi6@alvherre.pgsql
обсуждение исходный текст
Ответ на VACUUM (PARALLEL) option processing not using DefElem the way it was intended  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: VACUUM (PARALLEL) option processing not using DefElem the way it was intended
Список pgsql-hackers
On 2025-Oct-08, David Rowley wrote:

> I was just looking at the VACUUM option processing and I saw that the
> code to process the PARALLEL option doesn't make use of the code in
> defGetInt32() that's meant to handle empty and non-integer parameters.
> ExecVacuum() has code to handle an empty PARALLEL parameters, but not
> non-integer ones. That goes through to defGetInt32().

Yeah, that change makes sense to me.  With an eye towards not forcing
the translators to understand the message context or forced to translate
the word "parallel", I would suggest to take the option name out of the
sentence, maybe something like

  value for VACUUM option \"%s\" must be between 0 and %d

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/



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