7.1 LOCK TABLE changes - Mailing list pgsql-sql

From Brian Powell
Subject 7.1 LOCK TABLE changes
Date
Msg-id 200105311511.JAA16880@sisyphus.owlscreech.com
Whole thread Raw
Responses Re: 7.1 LOCK TABLE changes
List pgsql-sql
Greetings,

I am investigating whether our application will run on 7.1.1 (from 
7.0.3), and our client software only accesses the database through views 
for security and convenience.

In our client app, we lock our table before doing something to it.  
Fortunately, in 7.0.3, a view looked like a table and we could perform:

lock v_whatever in share row exclusive mode;

However, in 7.1.1, it comes back and tells me that:

ERROR:  LOCK TABLE: v_whatever is not a table

The HUGE advantage in 7.0.3 was that we could present our db through 
views and the client didn't have to know.

So, in 7.1.1, do I need to move the LOCK TABLE statements from the 
client software and into the rules of the views?

Thanks,

--Brian


pgsql-sql by date:

Previous
From: reinoud@xs4all.nl (Reinoud van Leeuwen)
Date:
Subject: Re: Date manipulation
Next
From: Thomas Swan
Date:
Subject: Re: Upgd from 7.0 to 7.1