Postgres commits 6e7baa3227 and b06d8e58b5 added a new unit suffix "B"

for memory parameters for bytes.
This commit is contained in:
Greg Stark 2018-10-06 13:08:04 -04:00 committed by Will Rouesnel
parent 42f9de480a
commit 5452a3aac6
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ func (s *pgSetting) normaliseUnit() (val float64, unit string, err error) {
return
case "ms", "s", "min", "h", "d":
unit = "seconds"
case "kB", "MB", "GB", "TB", "8kB", "16kB", "32kB", "16MB", "32MB", "64MB":
case "B", "kB", "MB", "GB", "TB", "8kB", "16kB", "32kB", "16MB", "32MB", "64MB":
unit = "bytes"
default:
err = fmt.Errorf("Unknown unit for runtime variable: %q", s.unit)