Questions about indexes - Mailing list pgsql-general

From Pat Maddox
Subject Questions about indexes
Date
Msg-id 810a540e0606101330m425c8195r6632acf0c58a7e78@mail.gmail.com
Whole thread Raw
Responses Re: Questions about indexes
List pgsql-general
I've got a table with that has 5 fields.  Nearly every query I make to
this table is of the form
SELECT * FROM table1 WHERE field1='foo' AND field2=7;

It's always those two exact fields.  How should I index this to get
the best performance?

Also, how can I find what other parts of my app would benefit from more indexes?

Thanks,
Pat

pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: Logging and Viewing SQL History
Next
From: John Gray
Date:
Subject: Re: pgxml & xpath_table