0

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)

1 Answer 1

2

Yes.

Sign up to request clarification or add additional context in comments.

1 Comment

Great, thanks. I searched the postgres documentation but didnt find anything like that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.