On Thu, Mar 13, 2014 at 10:34 AM, Euler Taveira <eu...@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