diff options
| author | Thomas Munro <tmunro@postgresql.org> | 2022-07-24 09:21:57 +1200 |
|---|---|---|
| committer | Thomas Munro <tmunro@postgresql.org> | 2022-07-24 09:29:48 +1200 |
| commit | 86e5eb4f58a276870fbd29e3711b36e4a4280979 (patch) | |
| tree | 1be63aedf830585e9385e60a5a6e3e854da676b7 /src/include | |
| parent | b431dc5c3d7207ffb56b6045eb04265a53f63a03 (diff) | |
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
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/pg_config.h.in | 3 | ||||
| -rw-r--r-- | src/include/rusagestub.h | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index 000ed9bde27..9061f301b05 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -250,9 +250,6 @@ /* Define to 1 if you have the `getrlimit' function. */ #undef HAVE_GETRLIMIT -/* Define to 1 if you have the `getrusage' function. */ -#undef HAVE_GETRUSAGE - /* Define to 1 if you have the `gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY diff --git a/src/include/rusagestub.h b/src/include/rusagestub.h index b887effa3e9..be26f849a59 100644 --- a/src/include/rusagestub.h +++ b/src/include/rusagestub.h @@ -15,9 +15,6 @@ #define RUSAGESTUB_H #include <sys/time.h> /* for struct timeval */ -#ifndef WIN32 -#include <sys/times.h> /* for struct tms */ -#endif #include <limits.h> /* for CLK_TCK */ #define RUSAGE_SELF 0 |
