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