Re: [HACKERS] Improvements in psql hooks for variables
От | Daniel Verite |
---|---|
Тема | Re: [HACKERS] Improvements in psql hooks for variables |
Дата | |
Msg-id | fa2685de-5262-460d-9eca-f027a5de0d7d@manitou-mail.org обсуждение исходный текст |
Ответ на | Re: [HACKERS] Improvements in psql hooks for variables (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: [HACKERS] Improvements in psql hooks for variables
Re: [HACKERS] Improvements in psql hooks for variables |
Список | pgsql-hackers |
Tom Lane wrote: > I took a quick look through this. It seems to be going in generally > the right direction, but here's a couple of thoughts: Here's an update with these changes: per Tom's suggestions upthread: - change ParseVariableBool() signature to return validity as bool. - remove ParseCheckVariableNum() in favor of using tightened up ParseVariableNum() and GetVariableNum(). - updated header comments in variables.h other changes: - autocommit_hook rejects transitions from OFF to ON when inside a transaction, per suggestion of Rahila Syed (which was the original motivation for the set of changes of this patch). - slight doc update for HISTCONTROL (values outside of enum not longer allowed) - add enum-style suggestions on invalid input for \pset x, \pset pager, and \set of ECHO, ECHO_HIDDEN, ON_ERROR_ROLLBACK, COMP_KEYWORD_CASE, HISTCONTROL, VERBOSITY, SHOW_CONTEXT, \x, \pager Best regards, -- Daniel Vérité PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
Вложения
В списке pgsql-hackers по дате отправления: