diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-04-30 03:23:49 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-04-30 03:23:49 +0000 |
commit | 957d08c81f9cc277725c83b9381c5154b6318a5e (patch) | |
tree | 1c665d6e63c2cb02156df44a3519d2a0bebcaea3 /src/backend/tcop/postgres.c | |
parent | 57b82bf324285464783796e5614d5f9aadd0817f (diff) | |
download | postgresql-957d08c81f9cc277725c83b9381c5154b6318a5e.tar.gz postgresql-957d08c81f9cc277725c83b9381c5154b6318a5e.zip |
Implement rate-limiting logic on how often backends will attempt to send
messages to the stats collector. This avoids the problem that enabling
stats_row_level for autovacuum has a significant overhead for short
read-only transactions, as noted by Arjen van der Meijden. We can avoid
an extra gettimeofday call by piggybacking on the one done for WAL-logging
xact commit or abort (although that doesn't help read-only transactions,
since they don't WAL-log anything).
In my proposal for this, I noted that we could change the WAL log entries
for commit/abort to record full TimestampTz precision, instead of only
time_t as at present. That's not done in this patch, but will be committed
separately.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions