pgsql: Allow units to be specified in relation option setting value. - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Allow units to be specified in relation option setting value.
Date
Msg-id E1XMtvj-0006DF-QW@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Allow units to be specified in relation option setting value.
List pgsql-committers
Allow units to be specified in relation option setting value.

This introduces an infrastructure which allows us to specify the units
like ms (milliseconds) in integer relation option, like GUC parameter.
Currently only autovacuum_vacuum_cost_delay reloption can accept
the units.

Reviewed by Michael Paquier

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e23014f3d40f7d2c23bc97207fd28efbe5ba102b

Modified Files
--------------
src/backend/access/common/reloptions.c    |   40 ++++++++++++++++-------------
src/include/access/reloptions.h           |    3 ++-
src/test/regress/expected/alter_table.out |   14 ++++++++++
src/test/regress/sql/alter_table.sql      |    6 +++++
4 files changed, 44 insertions(+), 19 deletions(-)


pgsql-committers by date:

Previous
From: Jeff Davis
Date:
Subject: pgsql: Allow multibyte characters as escape in SIMILAR TO and SUBSTRING
Next
From: Andres Freund
Date:
Subject: pgsql: Allow escaping of option values for options passed at connection