Re: disallow LOCK on a view - the Tom Lane remix - Mailing list pgsql-hackers

From Mark Hollomon
Subject Re: disallow LOCK on a view - the Tom Lane remix
Date
Msg-id 20000829210300.B25366@mindspring.com
Whole thread Raw
In response to Re: disallow LOCK on a view - the Tom Lane remix  (Alfred Perlstein <bright@wintelcom.net>)
Responses Re: disallow LOCK on a view - the Tom Lane remix
List pgsql-hackers
On Tue, Aug 29, 2000 at 04:14:00PM -0700, Alfred Perlstein wrote:
> 
> Ok, I'm wondering if this patch will cause problems locking a table
> that has had:
> 
> CREATE RULE "_RETfoo" AS ON SELECT TO foo DO INSTEAD SELECT * FROM foo1;
> 
> I need to be able to lock the table 'foo' exclusively while I swap
> out the underlying rule to forward to another table.
> 

Yes, it would. 'foo' would be seen as view.

Okay, this gives me a reason to to do it the hard way.

I will try to add a relisview attribute to pg_class.
That way, we can differentiate between tables with rules
and things created with 'CREATE VIEW'.

Hmmm... guess I'll need to change the definition of the pg_views
view as well.

-- 
Mark Hollomon
mhh@mindspring.com


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: disallow LOCK on a view - the Tom Lane remix
Next
From: Alfred Perlstein
Date:
Subject: Re: disallow LOCK on a view - the Tom Lane remix