make LockRelation use top transaction ID

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема make LockRelation use top transaction ID
Дата
Msg-id 20040723030540.GA24393@dcc.uchile.cl
обсуждение исходный текст
Ответы Re: make LockRelation use top transaction ID
Список pgsql-hackers
Hackers,

I just figured that if we let LockRelation use GetCurrentTransactionId()
then the wrong thing happens if we let large objects survive
subtransaction commit/abort.  The problem is that when closing a large
object at main transaction commit, which was opened inside a
subtransaction, the code tries to UnlockRelation(pg_largeobject), and
use the main transaction Xid (instead of the subtransaction Xid that it
used to LockRelation()).

So I have changed it to use GetTopTransactionId() instead.  Is that OK
with everybody?

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Maybe there's lots of data loss but the records of data loss are also lost.
(Lincoln Yeoh)



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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: [pgsql-hackers-win32] Weird new time zone
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Re: Fixing PKs and Uniques in tablespaces