Re: Left joining against two empty tables makes a query - Mailing list pgsql-performance

From Chris Travers
Subject Re: Left joining against two empty tables makes a query
Date
Msg-id 42E90E19.3030702@travelamericas.com
Whole thread Raw
In response to Re: Left joining against two empty tables makes a query SLOW  (Gnanavel S <s.gnanavel@gmail.com>)
Responses Re: Left joining against two empty tables makes a query  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Left joining against two empty tables makes a query SLOW  (Gnanavel S <s.gnanavel@gmail.com>)
List pgsql-performance
Gnanavel S wrote:

>
>
> vacuum & reindex the department and project table as the planner
> expects there are 1060 rows but actually returning nothing.

I guess I should have mentioned that I have been vacuuming and
reindexing at least once a week, and I did so just before running this test.
Normally I do:
vacuum analyze;
reindex database ....;

Secondly, the project table has *never* had anything in it.  So where
are these numbers coming from?

Best Wishes,
Chris Travers
Metatron Technology Consulting

pgsql-performance by date:

Previous
From: Steven Rosenstein
Date:
Subject: Unable to explain DB error
Next
From: Chris Hoover
Date:
Subject: Re: Fwd: Help with view performance problem