getrusage on win32

Started by Magnus Haganderabout 22 years ago2 messagespatches
Jump to latest
#1Magnus Hagander
magnus@hagander.net

Here is a fix for getrusage on win32. This fixes the bad timing output
from vacuum verbose.

The reason for the really weird numbers before was that the memset()
used to clear out the structure used sizeof(rusage) instead of
sizeof(struct rusage). That said, the old version didn't actually return
anything other than 0 by design. This version checks the actual times...

//Magnus

Attachments:

rusage_win32.patchapplication/octet-stream; name=rusage_win32.patchDownload+28-27
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#1)
Re: getrusage on win32

"Magnus Hagander" <mha@sollentuna.net> writes:

Here is a fix for getrusage on win32. This fixes the bad timing output
from vacuum verbose.

Applied.

regards, tom lane