Creating indexes?
Bjørn T Johansen <btj@havleik.no>
From: Bjørn T Johansen <btj@havleik.no>
To: pgsql-general <pgsql-general@postgresql.org>
Date: 2010-04-22T21:36:51Z
Lists: pgsql-general
What is the best approach for PostgreSQL when creating indexes? E.g I have two fields in a table that I want indexed, is it best to create one index combining the two fields or creating one for each field? If I create one for each field, will the search when using both fields be slower that a combined index? Regards, BTJ -- ----------------------------------------------------------------------------------------------- Bjørn T Johansen btj@havleik.no ----------------------------------------------------------------------------------------------- Someone wrote: "I understand that if you play a Windows CD backwards you hear strange Satanic messages" To which someone replied: "It's even worse than that; play it forwards and it installs Windows" -----------------------------------------------------------------------------------------------