query optimization - Mailing list pgsql-performance

From Richard Kojedzinszky
Subject query optimization
Date
Msg-id alpine.DEB.2.02.1204241008570.9591@krichy.tvnetwork.hu
Whole thread Raw
Responses Re: query optimization  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Re: query optimization  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
Dear list,

We have a database schema, which looks the same as the attached script.

When filling the tables with data, and skipping analyze on the table (so
pg_stats contains no records for table 'a'), the first select in the
script runs fast, but after an analyze the planner decides to sequence
scan tables b and c, thus making the query much slower. Can somebody help
me solving this issue, or tuning our installation to not to use sequence
scans in this case?

Thanks in advance,


Kojedzinszky Richard
Euronet Magyarorszag Informatikai Zrt.

Attachment

pgsql-performance by date:

Previous
From: Claudio Freire
Date:
Subject: Weird plan variation with recursive CTEs
Next
From: John Lister
Date:
Subject: Re: Configuration Recommendations