How to get the position of a column in the index in PostgreSQL database? indkey in pg_index catalog table gives the position of that column in it’s table, but i want the position of the column in it’s containing index.
Share
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.
Here’s one way. It might not be the best way.
where
beds_pkeyis the name of the index.