|
13 | 13 | * |
14 | 14 | *Copyright (c) 2001-2005, PostgreSQL Global Development Group |
15 | 15 | * |
16 | | - *$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.115 2005/12/31 19:39:10 momjian Exp $ |
| 16 | + *$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.116 2006/01/02 00:58:00 momjian Exp $ |
17 | 17 | * ---------- |
18 | 18 | */ |
19 | 19 | #include"postgres.h" |
@@ -810,9 +810,9 @@ pgstat_report_tabstat(void) |
810 | 810 | inti; |
811 | 811 |
|
812 | 812 | if (pgStatSock<0|| |
813 | | -!(pgstat_collect_querystring|| |
814 | | -pgstat_collect_tuplelevel|| |
815 | | -pgstat_collect_blocklevel)) |
| 813 | +(!pgstat_collect_querystring&& |
| 814 | +!pgstat_collect_tuplelevel&& |
| 815 | +!pgstat_collect_blocklevel)) |
816 | 816 | { |
817 | 817 | /* Not reporting stats, so just flush whatever we have */ |
818 | 818 | RegularTabStat.tsa_used=0; |
@@ -1224,9 +1224,9 @@ pgstat_initstats(PgStat_Info *stats, Relation rel) |
1224 | 1224 | void |
1225 | 1225 | pgstat_count_xact_commit(void) |
1226 | 1226 | { |
1227 | | -if (!(pgstat_collect_querystring|| |
1228 | | -pgstat_collect_tuplelevel|| |
1229 | | -pgstat_collect_blocklevel)) |
| 1227 | +if(!pgstat_collect_querystring&& |
| 1228 | +!pgstat_collect_tuplelevel&& |
| 1229 | +!pgstat_collect_blocklevel) |
1230 | 1230 | return; |
1231 | 1231 |
|
1232 | 1232 | pgStatXactCommit++; |
@@ -1256,9 +1256,9 @@ pgstat_count_xact_commit(void) |
1256 | 1256 | void |
1257 | 1257 | pgstat_count_xact_rollback(void) |
1258 | 1258 | { |
1259 | | -if (!(pgstat_collect_querystring|| |
1260 | | -pgstat_collect_tuplelevel|| |
1261 | | -pgstat_collect_blocklevel)) |
| 1259 | +if(!pgstat_collect_querystring&& |
| 1260 | +!pgstat_collect_tuplelevel&& |
| 1261 | +!pgstat_collect_blocklevel) |
1262 | 1262 | return; |
1263 | 1263 |
|
1264 | 1264 | pgStatXactRollback++; |
|