Re: stats for network traffic WIP

Поиск
Список
Период
Сортировка
От Nigel Heron
Тема Re: stats for network traffic WIP
Дата
Msg-id CAHhq2wJKbnreguNKXab0eeOWtocp4WLqOThwBBdynE09BM3=HA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: stats for network traffic WIP  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: stats for network traffic WIP  (Mike Blackwell <mike.blackwell@rrd.com>)
Список pgsql-hackers
On Wed, Nov 13, 2013 at 11:27 PM, Peter Eisentraut <peter_e@gmx.net> wrote:
> On Fri, 2013-11-08 at 10:01 -0500, Nigel Heron wrote:
>> here's v4 of the patch. I added documentation and a new global view
>> called "pg_stat_socket" (includes bytes_sent, bytes_received and
>> stats_reset time)
>
> Your patch needs to be rebased:
>
> CONFLICT (content): Merge conflict in src/test/regress/expected/rules.out
>

Hi,
here's a rebased patch with some additions.

an overview of it's current state...

a new pg_stat_socket global view:
- total bytes sent and received
- bytes sent and received for user backends
- bytes sent and received for wal senders
- total connection attempts
- successful connections to user backends
- successful connections to wal senders
- stats reset time
pg_stat_reset_shared('socket') resets the counters

added to pg_stat_database view:
- bytes sent and received per db
- successful connections per db
pg_stat_reset() resets the counters

added to pg_stat_activity view:
- bytes sent and received per backend

added to pg_stat_replication view:
- bytes sent and received per wal sender

using the existing track_counts guc to enable/disable these stats.
-nigel.

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Haribabu kommi
Дата:
Сообщение: Re: Heavily modified big table bloat even in auto vacuum is running
Следующее
От: David Rowley
Дата:
Сообщение: Re: init_sequence spill to hash table