Re: reloptions with a "namespace" - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: reloptions with a "namespace"
Date
Msg-id 20090202161111.GA3963@alvh.no-ip.org
Whole thread Raw
In response to Re: reloptions with a "namespace"  (Euler Taveira de Oliveira <euler@timbira.com>)
Responses Re: reloptions with a "namespace"
List pgsql-hackers
Euler Taveira de Oliveira wrote:
> Alvaro Herrera escreveu:
> > New patch attached, with pg_dump support (thanks to Tom for the SQL
> > heads-up).
> > 
> Great! We're close. Just two minor gripes:
> 
> +     char       *validnsps[] = { "toast" };
> 
> Surely, you forgot to add a NULL at the end. Patch is attached.

Right, thanks.

> IIRC, my last patch includes a partial validation code for RESET cases. For
> example, the last SQL will not be atomic (invalid reloption silently ignored).
> So, why not apply the namespace validation code to RESET case too? Patch is
> attached too.

No, we must not validate the options passed to RESET, because we want to
be able to reset even options that we do not currently think that are
valid.  Consider that we might be trying to clean up after options set
by a previous version of a module.



-- 
Alvaro Herrera                               http://www.PlanetPostgreSQL.org/
"Saca el libro que tu religión considere como el indicado para encontrar la
oración que traiga paz a tu alma. Luego rebootea el computador
y ve si funciona" (Carlos Duclós)


pgsql-hackers by date:

Previous
From: Grzegorz Jaskiewicz
Date:
Subject: Re: add_path optimization
Next
From: Chad Sellers
Date:
Subject: Re: How to get SE-PostgreSQL acceptable