From: Keith Worthington <keithw@narrowpathinc.com>
To: Dave Held <dave.held@arrayservicesgrp.com>
To: PostgreSQL Perform <pgsql-performance@postgresql.org>
Subject: Re: 4 way JOIN using aliases
Date: Tue, 12 Apr 2005 14:14:26 -0400
Message-ID: <20050412181234.M15392@narrowpathinc.com> (raw)
In-Reply-To: <49E94D0CFCD4DB43AFBA928DDD20C8F9026184A9@asg002.asg.local>
References: <49E94D0CFCD4DB43AFBA928DDD20C8F9026184A9@asg002.asg.local>
On Tue, 12 Apr 2005 08:41:55 -0500, Dave Held wrote
> > -----Original Message-----
> > From: Keith Worthington [mailto:KeithW@narrowpathinc.com]
> > Sent: Monday, April 11, 2005 7:44 PM
> > To: Neil Conway
> > Cc: PostgreSQL Perform
> > Subject: Re: [PERFORM] 4 way JOIN using aliases
> >
> > Neil Conway wrote:
> > > Keith Worthington wrote:
> > >
> > >> -> Seq Scan on tbl_current
> > (cost=0.00..1775.57 rows=76457
> > >> width=31) (actual time=22.870..25.024 rows=605 loops=1)
> > >
> > >
> > > This rowcount is way off -- have you run ANALYZE recently?
> > > [...]
> >
> > I run vacuumdb with the analyze option every morning via a
> > cron job. In my ignorance I do not know if that is the same
> > thing.
>
> Pass it an --analyze option if you aren't already.
>
> __
> David B. Held
>
Here is the command I have in the cron file.
vacuumdb --full --analyze --verbose --username dbuser --dbname ${IPA_DB} >>
${IPA_LOG_DIR}/ipavcmdb.log 2>&1
If this performs the analyze as I thought it should I do not know why the row
count is so badly off.
Kind Regards,
Keith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: keithw@narrowpathinc.com, dave.held@arrayservicesgrp.com
Subject: Re: 4 way JOIN using aliases
In-Reply-To: <20050412181234.M15392@narrowpathinc.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox