Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group