Re: 7.1.1 Lock Problems on Views - Mailing list pgsql-sql

From Tom Lane
Subject Re: 7.1.1 Lock Problems on Views
Date
Msg-id 11127.991327348@sss.pgh.pa.us
Whole thread Raw
In response to 7.1.1 Lock Problems on Views  (Brian Powell <brian@owlscreech.com>)
Responses Re: 7.1.1 Lock Problems on Views
List pgsql-sql
Brian Powell <brian@owlscreech.com> writes:
> In our client app, we lock our table before doing something to it.  

Why don't you redesign the app to not use table-level locks?
An MVCC-aware app should have little or no need for table-level
locking.

Locking views strikes me as a pretty fragile, if not outright broken,
approach anyway --- a lock on a view would only protect you against
other users of the same view, not against other users accessing the
same underlying tables through different views.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: rowset Return from postgresql
Next
From: Brian Powell
Date:
Subject: Re: 7.1.1 Lock Problems on Views