Re: Is this a bug? - Mailing list pgsql-hackers

From Fabrízio de Royes Mello
Subject Re: Is this a bug?
Date
Msg-id CAFcNs+r-0Rkw5YDtt=NtyC7K4B4V9AsZ_OGd+DLk728fskAAnA@mail.gmail.com
Whole thread
In response to Re: Is this a bug?  (Euler Taveira <euler@timbira.com.br>)
Responses Re: Is this a bug
List pgsql-hackers

On Thu, Mar 13, 2014 at 10:34 AM, Euler Taveira <euler@timbira.com.br> wrote:
>
> On 13-03-2014 00:11, Fabrízio de Royes Mello wrote:
> > Shouldn't the "ALTER" statements below raise an exception?
> >
> For consistency, yes. Who cares? I mean, there is no harm in resetting
> an unrecognized parameter. Have in mind that tighten it up could break
> scripts. In general, I'm in favor of validating things.
>

I know this could break scripts, but I think a consistent behavior should be raise an exception when an option doesn't exists.

> euler@euler=# reset noname;
> ERROR:  42704: unrecognized configuration parameter "noname"
> LOCAL:  set_config_option, guc.c:5220
>

This is a consistent behavior.

Regards,

--
Fabrízio de Royes Mello
Consultoria/Coaching PostgreSQL
>> Timbira: http://www.timbira.com.br
>> Blog sobre TI: http://fabriziomello.blogspot.com
>> Perfil Linkedin: http://br.linkedin.com/in/fabriziomello
>> Twitter: http://twitter.com/fabriziomello

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [PATCH] Store Extension Options
Next
From: Tom Lane
Date:
Subject: Re: Patch: show relation and tuple infos of a lock to acquire