Re: Real config values for bytes needs quotes? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Real config values for bytes needs quotes?
Date
Msg-id 09c2b9cb-6f73-8e83-a84e-29a2925a9eed@enterprisedb.com
Whole thread Raw
In response to Real config values for bytes needs quotes?  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Responses Re: Real config values for bytes needs quotes?
List pgsql-hackers
On 27.02.23 09:32, Kyotaro Horiguchi wrote:
> I found it frustrating that the line "shared_buffers = 0.1GB" in
> postgresql.conf postgresql.conf was causing an error and that the
> value required (additional) surrounding single quotes.  The attached
> patch makes the parser accept the use of non-quoted real values
> followed by a unit for such variables. I'm not sure if that syntax
> fully covers the input syntax of strtod, but I beieve it is suffucient
> for most use cases.

This seems sensible to fix.  If you're not sure about the details, write 
some test cases. :)



pgsql-hackers by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: pg_upgrade and logical replication
Next
From: Daniel Gustafsson
Date:
Subject: Re: Refactoring SysCacheGetAttr to know when attr cannot be NULL