pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
7.1 LOCK TABLE changes
2+ messages / 2 participants
[nested] [flat]

* 7.1 LOCK TABLE changes
@ 2001-05-31 15:12 Brian Powell <brian@owlscreech.com>
  2001-06-05 21:33 ` Re: 7.1 LOCK TABLE changes Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Brian Powell @ 2001-05-31 15:12 UTC (permalink / raw)
  To: 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: 7.1 LOCK TABLE changes
  2001-05-31 15:12 7.1 LOCK TABLE changes Brian Powell <brian@owlscreech.com>
@ 2001-06-05 21:33 ` Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2001-06-05 21:33 UTC (permalink / raw)
  To: Brian Powell <brian@owlscreech.com>; +Cc: 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@gmx.net   http://funkturm.homeip.net/~peter




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-06-05 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-31 15:12 7.1 LOCK TABLE changes Brian Powell <brian@owlscreech.com>
2001-06-05 21:33 ` Peter Eisentraut <peter_e@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox