views:

21

answers:

1

Im looking at an application where I will be doing quite a few SELECTs where I am trying to find column_a = x AND column_b = y. Is the correct to create that index that something like the following?

CREATE INDEX index_name ON table (column_a, column_b)
+2  A: 

Yes.

Milen A. Radev
Great, thanks. I searched the postgres documentation but didnt find anything like that.
Jackson Davis