*
* Copyright (c) 2001-2005, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.115 2005/12/31 19:39:10 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.116 2006/01/02 00:58:00 momjian Exp $
* ----------
*/
#include "postgres.h"
int i;
if (pgStatSock < 0 ||
- !(pgstat_collect_querystring ||
- pgstat_collect_tuplelevel ||
- pgstat_collect_blocklevel))
+ (!pgstat_collect_querystring &&
+ !pgstat_collect_tuplelevel &&
+ !pgstat_collect_blocklevel))
{
/* Not reporting stats, so just flush whatever we have */
RegularTabStat.tsa_used = 0;
void
pgstat_count_xact_commit(void)
{
- if (!(pgstat_collect_querystring ||
- pgstat_collect_tuplelevel ||
- pgstat_collect_blocklevel))
+ if (!pgstat_collect_querystring &&
+ !pgstat_collect_tuplelevel &&
+ !pgstat_collect_blocklevel)
return;
pgStatXactCommit++;
void
pgstat_count_xact_rollback(void)
{
- if (!(pgstat_collect_querystring ||
- pgstat_collect_tuplelevel ||
- pgstat_collect_blocklevel))
+ if (!pgstat_collect_querystring &&
+ !pgstat_collect_tuplelevel &&
+ !pgstat_collect_blocklevel)
return;
pgStatXactRollback++;