Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id CB97A475EA6 for ; Thu, 20 Jun 2002 21:04:00 -0400 (EDT) Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id A9175476CD8 for ; Thu, 20 Jun 2002 19:58:39 -0400 (EDT) Received: from [66.219.92.2] (HELO chocolate-mousse) by davinci.ethosmedia.com (CommuniGate Pro SMTP 3.5.9) with ESMTP id 1551203; Thu, 20 Jun 2002 16:58:40 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Achilleus Mantzios Subject: Re: SQL performance issue with PostgreSQL compared to Date: Thu, 20 Jun 2002 17:00:26 -0700 X-Mailer: KMail [version 1.4] Cc: Jeff Self , References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200206201700.26725.josh@agliodbs.com> X-Archive-Number: 200206/281 X-Sequence-Number: 8246 Achilleus, > > > The pgsql db is indexed on the > > > 'authuser' field, and I've run 'analyze logfile'.=20 > >=20 > > He also needs to index the bytes field and the traffic field. And run > ^^^^^^^ >=20 > Index on an aggregate function??? >=20 > I though we could only index plain normal column iscachable functions. No, you're correct. I meant just to index on the bytes field. --=20 -Josh Berkus