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

[patch] pg_stat_lwlocks view - lwlocks statistics

From: Qi Huang <huangqiyx(at)hotmail(dot)com>
To: <pgsql-hackers(at)postgresql(dot)org>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, <snaga(at)uptime(dot)jp>
Subject: [patch] pg_stat_lwlocks view - lwlocks statistics
Date: 2012-07-31 05:50:14
Message-ID: BAY159-W37DDEDC49F1DE22E4A1782A3C50@phx.gbl (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

Hi,    I was doing patch review for patch of "pg_stat_lwlocks view - lwlocks statistics".
   The mail for the patch work is at: 
   Following the steps on, the review is below:
1. submission review  The patch is in standard git diff format.   The patch applies with git repo master branch, in commit 8a504a363925fc5c7af48cd723da3f7e4d7ba9e2.  I applied back the patch with command "patch -p1 <pg_stat_lwlocks_20120626.diff".  The patch applies back cleanly.   There is no test file or doc patch, as I didn't find any.
2. Usability Review  I run queries to select from pg_stat_lwlocks and function pg_stat_get_lwlocks(), and they return the same results. And after running select from pg_stat_reset_lwlocks(), all the data seems to reset. So the stats relation and functions are working. 
3. Code format  Looking at the patch file, the code format looks nice. Also some basic comments inside. 
About the code quality, performance review and further bebugging, I'm not sure how should I do the testing.... Any suggestion? 
Any comment?Thanks.
 Best RegardsHuang Qi VictorComputer Science of National University of Singapore


Attachment: pg_stat_lwlocks_20120626.diff
Description: application/octet-stream (9.0 KB)

pgsql-hackers by date

Next:From: Jan UrbańskiDate: 2012-07-31 09:40:18
Subject: Re: Passing tabular data around using python functions
Previous:From: Jan WieckDate: 2012-07-31 03:26:59
Subject: Re: [patch] libpq one-row-at-a-time API

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