X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id DE59BD1B4EF for ; Wed, 22 Oct 2003 12:37:22 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 96121-06 for ; Wed, 22 Oct 2003 09:36:55 -0300 (ADT) Received: from mail.hive.nj2.inquent.com (mc.carriermail.com [205.178.180.9]) by svr1.postgresql.org (Postfix) with SMTP id 7B8FFD1B53B for ; Wed, 22 Oct 2003 09:36:36 -0300 (ADT) Received: (qmail 13687 invoked from network); 22 Oct 2003 12:35:48 -0000 Received: from unknown (HELO ?192.168.1.199?) (134.22.68.20) by 205.178.180.9 with SMTP; 22 Oct 2003 12:35:48 -0000 Subject: Re: see a current query From: Rod Taylor To: sad Cc: pgsql-sql In-Reply-To: <200310221326.41425.sad@bankir.ru> References: <200310221326.41425.sad@bankir.ru> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-QwZDkjSiPDH51GIzWMih" Message-Id: <1066826186.3004.10.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 22 Oct 2003 08:36:27 -0400 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/286 X-Sequence-Number: 15686 --=-QwZDkjSiPDH51GIzWMih Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2003-10-22 at 05:26, sad wrote: > Hello >=20 > i'am logged in as superuser (pgsql) > trying to=20 > SELECT * FROM pg_stat_activity; > and seeing NULLs instead of current_query column& You need to change the stats settings in postgresql.conf. By default the current query is not enabled as it does cause a performance loss. --=-QwZDkjSiPDH51GIzWMih Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/lnnK6DETLow6vwwRAu2rAJ4vGKdBNJOL215kRbH3Z7q0D+95DwCfekGx D9Zi4B9LJI/w+6BbIN547Wc= =1Kdv -----END PGP SIGNATURE----- --=-QwZDkjSiPDH51GIzWMih--