Re: Patch to warn about oid/xid wraparound

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Patch to warn about oid/xid wraparound
Дата
Msg-id Pine.LNX.4.30.0106132231390.756-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Patch to warn about oid/xid wraparound  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian writes:

> Here is an new patch that updates the percentage display when it is run,
> rather than just displaying 75%.  I had to do the computation using
> floats to prevent overflow.

You could use ldiv().

Also, UINT_MAX (for transaction id) and OID_MAX (for Oid) might be
preferred over ~0.

Btw., there is a typo here:

>     GetCurrentTransactionId() - (float)(~(TransactionId)0) * 100);

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



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

Предыдущее
От: Vince Vielhaber
Дата:
Сообщение: Re: create user problem
Следующее
От: Peter Eisentraut
Дата:
Сообщение: RE: vacuum