Re: Improvements in psql hooks for variables

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Re: Improvements in psql hooks for variables
Дата
Msg-id de7ebdcd-6f4b-47b9-9612-71dffb8355a6@mm
обсуждение исходный текст
Ответ на Re: Improvements in psql hooks for variables  ("Daniel Verite" <daniel@manitou-mail.org>)
Ответы Re: Improvements in psql hooks for variables
Re: Improvements in psql hooks for variables
Список pgsql-hackers
   I wrote:

> So I went through the psql commands which don't fail on parse errors
> for booleans
> [...]

Here's a v5 patch implementing the suggestions mentioned upthread:
all meta-commands calling ParseVariableBool() now fail
when the boolean argument can't be parsed successfully.

Also includes a minor change to SetVariableAssignHook() that now
returns the result of the hook it calls after installing it.
It doesn't make any difference in psql behavior since callers
of SetVariableAssignHook() ignore its return value, but it's
more consistent with SetVariable().

Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite

Вложения

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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: Creating a DSA area to provide work space for parallel execution
Следующее
От: Craig Ringer
Дата:
Сообщение: [bugfix] commit timestamps ERROR on lookup of FrozenTransactionId