1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

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
This commit is contained in:
Fujii Masao
2014-08-28 15:55:50 +09:00
parent 8167a3883a
commit e23014f3d4
4 changed files with 44 additions and 19 deletions

View File

@ -1254,6 +1254,12 @@ ALTER TABLE test_inh_check ALTER COLUMN a TYPE numeric;
\d test_inh_check
\d test_inh_check_child
-- Set a storage parameter with unit
CREATE TABLE test_param_unit (a text) WITH (autovacuum_vacuum_cost_delay = '80ms');
ALTER TABLE test_param_unit SET (autovacuum_vacuum_cost_delay = '3min');
ALTER TABLE test_param_unit SET (autovacuum_analyze_threshold = '3min'); -- fails
\d+ test_param_unit
--
-- lock levels
--