Re: A 2 phase commit weirdness

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: A 2 phase commit weirdness
Дата
в 21:14:28
Msg-id
20050531001416.GA3210@surnet.cl
Ответ на
Список
Дерево обсуждения
A 2 phase commit weirdness Alvaro Herrera <alvherre@surnet.cl>
Re: A 2 phase commit weirdness Tom Lane <tgl@sss.pgh.pa.us>
Re: A 2 phase commit weirdness Heikki Linnakangas <hlinnaka@iki.fi>
Re: A 2 phase commit weirdness Tom Lane <tgl@sss.pgh.pa.us>
Re: A 2 phase commit weirdness Alvaro Herrera <alvherre@surnet.cl>
Re: A 2 phase commit weirdness Tom Lane <tgl@sss.pgh.pa.us>
Re: A 2 phase commit weirdness Alvaro Herrera <alvherre@surnet.cl>
Re: A 2 phase commit weirdness Tom Lane <tgl@sss.pgh.pa.us>
Re: A 2 phase commit weirdness Alvaro Herrera <alvherre@surnet.cl>
On Fri, May 27, 2005 at 11:12:06AM -0400, Tom Lane wrote:
> Heikki Linnakangas  writes:
> > Looking at the sequence, at least the relcache init file stuff looks if 
> > not broken at least a bit heavy-handed...
> 
> I was planning to change that ;-) ... using separate 2PC action records
> for the relcache init file actions would make it much better.

Hum, do you mean separate for 2PC only, or make'em completely separate
invalidation messages?

I fixed the problem I had -- it was very easy to make the messages get
processed locally.  However strangeness can still happen.  Consider:

create table foo ();

begin;
drop table foo;
prepare transaction 'foo';


Now any backend that tries to access table foo will block, because the
'foo' prepared transaction has acquired a lock on it.  However the table
is still visible in the catalogs, as it should be.  It can easily be
awakened by other backend doing

commit transaction 'foo';

But at awakening, the user will get this:

ERROR:  relation 66002 deleted while still in use

This is ugly -- I don't think there is a way to get out of it.


Unrelated question: is it intended that the prepared transactions are
visible cross-database through pg_prepared_xacts?

-- 
Alvaro Herrera ()
"No single strategy is always right (Unless the boss says so)"                                                 (Larry Wall)

В списке pgsql-hackers по дате отправления
От: Mark Kirkwood
Дата:
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Autoconf update?
FAQ