Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

In sqlalchemy with postgres, how do I create an index on an attribute inside a json type field?

This didn't work:

Index("tablename.jsonfield.mykey.index", "'jsonfield'->>'mykey'")
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.