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

Re: Altering view ownership doesn't work ...

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Altering view ownership doesn't work ...
Date: 2006-04-30 16:54:23
Message-ID: 20060430165423.GE11912@svana.org (view raw or flat)
Thread:
Lists: pgsql-hackers
On Sun, Apr 30, 2006 at 12:34:42PM -0400, Tom Lane wrote:
> 2. Run setRuleCheckAsUser during rule load rather than rule store.
> 
> #2 is a lot simpler, and would fix the problem for existing broken rules
> whereas #1 would not, so I'm kind of inclined to go with that.  I doubt
> there'd be any meaningful performance hit --- parsing the stored form
> of a rule is relatively expensive anyway, so we cache the results.

FWIW, I think #2 is better also. It's the easiest way to ensure the
correct result and the performence isn't enough of a problem to worry
about doing it a different way.

Have a nice day,

-- 
Martijn van Oosterhout   <kleptog(at)svana(dot)org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2006-04-30 17:17:15
Subject: Re: Altering view ownership doesn't work ...
Previous:From: Tom LaneDate: 2006-04-30 16:34:42
Subject: Altering view ownership doesn't work ...

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