Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: how to optimize postgres 8.1



gurkan(at)resolution(dot)com writes:
> I need to increase performance on postgres,

Well, for starters, have you ANALYZEd your tables?  That EXPLAIN output
looks suspiciously like default estimates.  Then post EXPLAIN ANALYZE
(not just EXPLAIN) results for your problem query.

> If I run the query below with informix, it gives cost=107.
> with postgres with additional indexes it gives cost=407,

That comparison is meaningless --- I know of no reason to think that
informix measures cost estimates on the same scale we do.  It'd be
interesting to see what query plan they use, though.

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group