Skip to content

Abstract over getrusage #10542

@Ericson2314

Description

@Ericson2314

EvalState::printStatistics uses getrusage, which is not portable to Windows. https://github.com/postgres/postgres/blob/master/src/port/win32getrusage.c is a compat shim however from venerable PostgreSQL that I think is appropriately licensed for us.

We should create a new interface in libutil for what EvalState::printStatistics needs. (It doesn't need to have the same type signature as getrusage if that helps) and then implement Windows and Unix implementations.

Originally posted by @Ericson2314 in #8901 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions