getrusage on win32 - Mailing list pgsql-patches

From Magnus Hagander
Subject getrusage on win32
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE475BB1@algol.sollentuna.se
Whole thread Raw
Responses Re: getrusage on win32
List pgsql-patches
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


Attachment

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgxs default installation + various fixes
Next
From: Tom Lane
Date:
Subject: Re: getrusage on win32