Re: 7.1 LOCK TABLE changes

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Brian Powell <brian(at)owlscreech(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: 7.1 LOCK TABLE changes
Date: 2001-06-05 21:33:43
Message-ID: Pine.LNX.4.30.0106052329550.900-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Brian Powell writes:

> 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;

There is no and never was any point in locking a view, since it doesn't
contain any data. Usually, you don't need explicit locks anyway, but I
can't tell from here why you might want to.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message clayton cottingham 2001-06-05 22:09:06 plperl
Previous Message Stephan Szabo 2001-06-05 21:30:38 Re: query on two databases ..