Re: persistent portals/cursors (between transactions) - Mailing list pgsql-general

From Tom Lane
Subject Re: persistent portals/cursors (between transactions)
Date
Msg-id 26443.1011978368@sss.pgh.pa.us
Whole thread Raw
In response to Re: persistent portals/cursors (between transactions)  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
List pgsql-general
"Hiroshi Inoue" <Inoue@tpf.co.jp> writes:
>> AccessShareLock would fend off DROP/ALTER TABLE, but not VACUUM anymore.

> Really ? VACUUM FULL conflicts with AccessShareLock from the
> first.

I was speaking of lazy VACUUM, of course.

> If new vacuum does wrong thing with persistent read-only cursors
> it would do the wrong thing with the current cursors as well.

No, because current cursors don't span transactions.

> Of cource as Vadim mentioned before, HeapTupleSatisfiesVacuum()
> should take the transaction id in which the cursor was opened into
> account.

I haven't read all of that thread yet; maybe Vadim already had the idea
I just had of playing games with oldest-XMIN.

            regards, tom lane

pgsql-general by date:

Previous
From: Fran Fabrizio
Date:
Subject: grant the right to select only certain rows?
Next
From: "Gregory Wood"
Date:
Subject: Re: grant the right to select only certain rows?