Remove dead getrusage replacement code.
authorThomas Munro <tmunro@postgresql.org>
Sat, 23 Jul 2022 21:21:57 +0000 (09:21 +1200)
committerThomas Munro <tmunro@postgresql.org>
Sat, 23 Jul 2022 21:29:48 +0000 (09:29 +1200)
commit86e5eb4f58a276870fbd29e3711b36e4a4280979
tree1be63aedf830585e9385e60a5a6e3e854da676b7
parentb431dc5c3d7207ffb56b6045eb04265a53f63a03
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
configure
configure.ac
src/backend/tcop/postgres.c
src/include/pg_config.h.in
src/include/rusagestub.h
src/port/getrusage.c
src/tools/msvc/Solution.pm