Compatible with psycopg2.extras.register_hstore