I am attempting to implement this code https://gist.github.com/1859653 that allows sqlalchemy to interact with an hstore column.
Its mentioned in that gist's comments the need to run the psycopg2.extras.register_hstore. When and were should this function be run? If i do:
@app.before_request
def reg_hstore() :
register_hstore(db.engine.raw_connection(), True)
heroku errors with 'too many connections'
there is also mention of using pghstore (http://pypi.python.org/pypi/pghstore) instead of psycopg2 but it gives no indication how to set it up.
Also, I'm wondering if the use of hstore indexes is supported in this add-on code.