Skip site navigation (1) Skip section navigation (2)

[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 (view raw or flat)
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: pgstat.c.diff
Description: text/plain (2.2 KB)

Responses

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group