Re: Patch for units in postgresql.conf - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: Patch for units in postgresql.conf
Date
Msg-id 20060725131249.GB18074@surnet.cl
Whole thread Raw
In response to Patch for units in postgresql.conf  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
Peter Eisentraut wrote:

> +    if ((flags & (GUC_UNIT_KB|GUC_UNIT_BLOCKS)) && endptr != value)
> +    {
> +        bool used = false;
> +
> +        while (*endptr == ' ')
> +            endptr++;
> +
> +        if (strcmp(endptr, "kB") == 0)
> +        {
> +            val *= KILOBYTE;
> +            used = true;
> +            endptr += 2;
> +        }

Does this mean that one must match the "kB" exactly, with the specified
upper and lower case?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Patch for units in postgresql.conf
Next
From: "Sergey E. Koposov"
Date:
Subject: Re: patch implementing the multi-argument aggregates (SOC