0

I have a table with some 670000 records inside it and some indexes.

I created a new index and now I need to know if I have to manually go and reindex that table or Postgres will automatically do that.

2
  • 1
    reindex will re-create all indexes on the table. Why do you think you would need that if you just add a new index? Commented Apr 22, 2015 at 6:38
  • 1
    postgresql.org/docs/9.4/static/sql-reindex.html Commented Apr 22, 2015 at 6:40

1 Answer 1

1

So I found the answer and it is NO, Postgres does not automatically reindex all the table when you add a new index to it.

Anyway, @a_horse_with_no_name point is good, usually there is no need to reindex all the table when you add a new index to it

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

Comments

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.