[PATCH] fix for pg_stat_database (numbackends is always zero)

From: Petr Jelínek <pjmodos(at)parba(dot)cz>
To: pgsql-patches(at)postgresql(dot)org
Subject: [PATCH] fix for pg_stat_database (numbackends is always zero)
Date: 2005-06-23 20:01:56
Message-ID: 42BB1534.2020008@parba.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

This patch fixes pg_stat_database which is broken since this commit:
http://archives.postgresql.org/pgsql-committers/2005-05/msg00126.php
Neilc forgot to add new db entry inicialization to pgstat_recv_bestart()
when he removed it from pgstat_add_backend() function, which causes
numbackends in pg_stat_database table to be allways zero.

This is my first patch for postgres so I hope I did it right.

--
Regards
Petr Jelinek (PJMODOS)
www.parba.cz

Attachment Content-Type Size
pgstat.c.diff text/plain 2.2 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2005-06-23 23:36:54 Another unused variable
Previous Message Josh Berkus 2005-06-23 18:21:41 Re: PL/pgSQL Debugger Support