Re: Patch for units in postgresql.conf

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Patch for units in postgresql.conf
Date: 2006-07-25 13:12:50
Message-ID: 20060725131249.GB18074@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2006-07-25 13:44:09 Re: Patch for units in postgresql.conf
Previous Message Peter Eisentraut 2006-07-25 12:07:50 Patch for units in postgresql.conf