Re: Two-phase commit

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: Two-phase commit
Дата
Msg-id Pine.LNX.4.61.0410070825590.17826@sablons.cri.ensmp.fr
обсуждение исходный текст
Ответ на Re: Two-phase commit  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Two-phase commit  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Implementation-wise, I really dislike storing the info in a shared hash
> table, because I don't see any reasonable bound on the size of the hash
> table (your existing code uses 100 which is about as arbitrary as it
> gets). [...]
>
> The idea that occurs to me instead is to not use WAL or shared memory at
> all for keeping the prepared-transaction state info.  Instead, suppose
> that we store the status information in a file named after the GID,
> "$PGDATA/pg_twophase/gid". [...]

Sorry for this stupid general comment, but why couldn't the gid be stored 
in some shared system table that would rely on pg infrastructure for 
caching, sharing, locking and so on? More over, that would allow the 
administrator to have a look at them quite simply. Is this just a 
performance issue?

-- 
Fabien.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: libpq and prepared statements progress for 8.0
Следующее
От: "Simon Riggs"
Дата:
Сообщение: Re: PITR question