Tell postgres which index to use?

From: Silke Trissl <trissl(at)informatik(dot)hu-berlin(dot)de>
To: pgsql-performance(at)postgresql(dot)org
Subject: Tell postgres which index to use?
Date: 2005-02-09 15:58:01
Message-ID: 420A3309.5040507@informatik.hu-berlin.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi,

is there a way to tell Postgres which index to use when a query is
issued in 7.4.2?

I have a query for which costwise a Hash-Join and no Index-Usage is the
best, but timewise using the index and then do a NestedLoop join is much
better (3 - 4 times).

I have vacuumed before I started the comparison, so Postgres does its
best. And I don't constantly want to switch on and off the hashjoin and
mergejoin.

Regards,

Silke Trissl

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Josh Berkus 2005-02-09 17:41:01 Re: Tell postgres which index to use?
Previous Message John A Meinel 2005-02-09 15:16:03 Re: How can I make use of both CPUs in a dual processor