From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove dead getrusage replacement code.
Date: Sat, 23 Jul 2022 21:31:11 +0000
Message-ID: <E1oFMiM-000w7Z-L9@gemulon.postgresql.org> (raw)
Remove dead getrusage replacement code.
getrusage() is in SUSv2 and all targeted Unix systems have it.
Note that POSIX only covers ru_utime and ru_stime and we rely on many
more fields without any kind of configure probe, but that predates this
commit.
The only supported system we need replacement code for now is Windows,
and that can be done without a configure probe.
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Greg Stark <stark@mit.edu>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Discussion: https://postgr.es/m/CA+hUKGJ3LHeP9w5Fgzdr4G8AnEtJ=z=p6hGDEm4qYGEUX5B6fQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/86e5eb4f58a276870fbd29e3711b36e4a4280979
Modified Files
--------------
configure | 19 ++++++------------
configure.ac | 2 +-
src/backend/tcop/postgres.c | 13 +++++++++---
src/include/pg_config.h.in | 3 ---
src/include/rusagestub.h | 3 ---
src/port/getrusage.c | 49 +++------------------------------------------
src/tools/msvc/Solution.pm | 1 -
7 files changed, 20 insertions(+), 70 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tmunro@postgresql.org
Subject: Re: pgsql: Remove dead getrusage replacement code.
In-Reply-To: <E1oFMiM-000w7Z-L9@gemulon.postgresql.org>
References: <E1oFMiM-000w7Z-L9@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox