Re: TODO item: Allow more complex user/database default GUC settings - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: TODO item: Allow more complex user/database default GUC settings
Date
Msg-id 20090924210052.GI3914@alvh.no-ip.org
Whole thread Raw
In response to Re: TODO item: Allow more complex user/database default GUC settings  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: TODO item: Allow more complex user/database default GUC settings
List pgsql-hackers
Tom Lane escribió:
> Gurjeet Singh <singh.gurjeet@gmail.com> writes:
> > ON instead of second ALTER looks better, and IMHO DATABASE <dbname> should
> > be optional too:
> 
> > ALTER ROLE <rolename> [ON DATABASE <dbname>] SET <config> TO <value>;
> 
> IN, not ON.

This creates a parser conflict with
CREATE ROLE foo IN ROLE bar

I think it can be solved by splitting OptRoleElem in a set of
productions for ALTER and a superset of that for ALTER.  I'll go try
that.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Euler Taveira de Oliveira
Date:
Subject: plpgsql function is so slow
Next
From: Tom Lane
Date:
Subject: Re: plpgsql function is so slow