From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Remove dead getrusage replacement code. |
Date: | 2022-07-23 21:31:11 |
Message-ID: | E1oFMiM-000w7Z-L9@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)sss(dot)pgh(dot)pa(dot)us>
Reviewed-by: Greg Stark <stark(at)mit(dot)edu>
Reviewed-by: Robert Haas <robertmhaas(at)gmail(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2022-07-23 21:42:37 | pgsql: Remove dead handling for pre-POSIX sigwait(). |
Previous Message | Tom Lane | 2022-07-23 20:10:52 | pgsql: Doc: update recovery/README. |