RE: [HACKERS] SELECT FOR UPDATE leaks relation refcounts

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgreSQL(dot)org>
Subject: RE: [HACKERS] SELECT FOR UPDATE leaks relation refcounts
Date: 2000-02-03 02:19:52
Message-ID: 000701bf6ded$27b037c0$2801007e@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: Thursday, February 03, 2000 10:00 AM
>
> This seems to solve Oliver's problem, and the regress tests still pass,
> so I committed it a little while ago.
>
> > Is there anything wrong with inserting heap_close(relation, NoLock)
> > immediately before 'continue;' ?
>
> We can do that if it turns out my analysis is wrong and RowShareLock
> should indeed be grabbed on views as well as their underlying tables.
>

I couldn't judge whether the following current behavior has some meaning
or not.

Let v be a view;

Session-1
begin;
lock table v in exclusive mode; (I don't know what this means)

Session-2
begin;
select * from v for update;
(blocked by Session-1)

Regards.

Hiroshi Inoue
Inoue(at)tpf(dot)co(dot)jp

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chris Bitmead 2000-02-03 02:45:31 Re: [GENERAL] Proposed Changes to PostgreSQL
Previous Message Bruce Momjian 2000-02-03 02:08:46 Re: [GENERAL] Proposed Changes to PostgreSQL