Tom Lane
fb3dbdf986
Rethink prior patch to filter out dead backend entries from the pgstats
...
file. The original code probed the PGPROC array separately for each PID,
which was not good for large numbers of backends: not only is the runtime
O(N^2) but most of it is spent holding ProcArrayLock. Instead, take the
lock just once and copy the active PIDs into an array, then use qsort
and bsearch so that the lookup time is more like O(N log N).
2005-12-16 04:03:40 +00:00
..
2005-12-07 19:37:53 +00:00
2004-12-31 22:04:05 +00:00
2005-11-22 18:17:34 +00:00
2005-12-14 17:06:28 +00:00
2005-12-03 05:51:03 +00:00
2005-10-15 02:49:52 +00:00
2005-11-22 18:17:34 +00:00
2005-10-15 02:49:52 +00:00
2005-12-07 15:20:56 +00:00
2005-11-26 22:14:57 +00:00
2005-10-15 02:49:52 +00:00
2005-10-25 15:15:16 +00:00
2005-10-15 02:49:52 +00:00
2005-10-15 02:49:52 +00:00
2005-06-04 19:19:42 +00:00
2005-12-16 04:03:40 +00:00
2005-11-22 18:17:34 +00:00
2005-12-01 02:03:01 +00:00
2005-12-06 02:29:04 +00:00
2005-10-15 02:49:52 +00:00
2005-11-22 18:17:34 +00:00
2005-12-08 17:52:11 +00:00
2005-01-01 20:44:34 +00:00
2005-12-09 21:19:36 +00:00
2005-11-22 18:17:34 +00:00
2005-10-07 20:11:03 +00:00
2005-12-06 02:29:04 +00:00
2005-12-09 04:50:40 +00:00
2005-10-15 02:49:52 +00:00
2005-10-15 02:49:52 +00:00
2005-12-06 18:35:10 +00:00
2004-08-29 05:07:03 +00:00
2004-12-31 22:04:05 +00:00
2005-04-14 01:38:22 +00:00
2005-07-27 12:44:10 +00:00
2004-01-25 22:19:42 +00:00