Re: persistent portals/cursors (between transactions)
От | Hiroshi Inoue |
---|---|
Тема | Re: persistent portals/cursors (between transactions) |
Дата | |
Msg-id | EKEJJICOHDIEMGPNIFIJOELEGJAA.Inoue@tpf.co.jp обсуждение исходный текст |
Ответ на | Re: persistent portals/cursors (between transactions) (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: persistent portals/cursors (between transactions)
|
Список | pgsql-general |
> -----Original Message----- > From: Tom Lane [mailto:tgl@sss.pgh.pa.us] > > Hiroshi Inoue <Inoue@tpf.co.jp> writes: > > Tom Lane wrote: > >> If it's not holding any locks, I can guarantee you it's not > insensitive. > >> Consider VACUUM, or even DROP TABLE. > > > It's already possible to keep a lock accross transactions. > > So it would keep an AccessShareLock across transactions. > > AccessShareLock would fend off DROP/ALTER TABLE, but not VACUUM anymore. Really ? VACUUM FULL conflicts with AccessShareLock from the first. If new vacuum does wrong thing with persistent read-only cursors it would do the wrong thing with the current cursors as well. Of cource as Vadim mentioned before, HeapTupleSatisfiesVacuum() should take the transaction id in which the cursor was opened into account. regards, Hiroshi Inoue
В списке pgsql-general по дате отправления: