Re: Revised Patch to allow multiple table locks in "Unison"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fernando Nasser <fnasser(at)cygnus(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Neil Padgett <npadgett(at)redhat(dot)com>, "pgsql-patches(at)postgresql(dot)org" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Revised Patch to allow multiple table locks in "Unison"
Date: 2001-08-02 20:05:44
Message-ID: 12542.996782744@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Fernando Nasser <fnasser(at)cygnus(dot)com> writes:
> What about having the syntax
> LOCK a,b,c;
> now just as a shorthand for
> LOCK a;
> LOCK b;
> LOCK c;
> This would save typing and allow for Oracle compatibility.

This seems fine to me (and in fact I thought we'd already agreed to it).
Maybe some day we will get ambitious enough to make it do
parallel-locking, but for now we can get 80% of what we want with 0.8%
of the effort ;-)

> I wonder how we handle
> LOCK v;
> where "v" is a view.

regression=# create view v as select * from int4_tbl;
CREATE
regression=# lock table v;
ERROR: LOCK TABLE: v is not a table

> We should be locking all the base tables.

I consider that debatable. It hard-wires a rather constricted idea
of what the semantics of a view are.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2001-08-02 20:08:54 Re: Re: OID wraparound: summary and proposal
Previous Message Marc G. Fournier 2001-08-02 19:26:31 Re: Re: What needs to be done?

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Padgett 2001-08-02 20:11:51 Re: Revised Patch to allow multiple table locks in "Unison"
Previous Message Fernando Nasser 2001-08-02 19:24:01 Re: Revised Patch to allow multiple table locks in "Unison"