For example if I build an index on
A, B, C
And then subsequently build an index on
A, B, D
Is the original A, B portion reused or is everything built again from scratch?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, each index is a new individual object. Check pg_class.
Edit: You don’t have to create two indexes holding the A and B columns twice. Create an index on A, B and C and then another index on D. PostgreSQL can use two indexes, when needed.