You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
the issue with a local PostgreSQL install?: Yes but that happens with a local PostgreSQL too
Python version: 3.10.4
Platform: x86_64 GNU/Linux
Do you use pgbouncer?: no
Did you install asyncpg with pip?: yes
Can the issue be reproduced under both asyncio and uvloop?: yes
Does asyncpg supports the jsonb_path_query function? I get an error when trying to use it (whereas it works with psycopg2):
2022-10-07 14:35:02,112 INFO sqlalchemy.engine.Engine SELECT jsonb_path_query(tt.col, %(jsonb_path_query_2)s, %(jsonb_path_query_3)s) AS jsonb_path_query_1
FROM tt
2022-10-07 14:35:02,112 INFO sqlalchemy.engine.Engine [generated in 0.00047s] {'jsonb_path_query_2': '$ ? (@.provider == $provider).services[*] ? (@.service == $svc).data ? (@.argument_name == $argname)', 'jsonb_path_query_3': '{"provider": "A", "svc": "B", "argname": "C"}'}
[{'argument_name': 'C'}]
and
sqlalchemy.exc.ProgrammingError: (sqlalchemy.dialects.postgresql.asyncpg.ProgrammingError) <class 'asyncpg.exceptions.UndefinedFunctionError'>: function jsonb_path_query(jsonb, character varying, character varying) does not exist
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
[SQL: SELECT jsonb_path_query(tt.col, %s, %s) AS jsonb_path_query_1
FROM tt]
[parameters: ('$ ? (@.provider == $provider).services[*] ? (@.service == $svc).data ? (@.argument_name == $argname)', '{"provider": "A", "svc": "B", "argname": "C"}')]
Is there something I'm missing to enable perhaps?
The text was updated successfully, but these errors were encountered:
the issue with a local PostgreSQL install?: Yes but that happens with a local PostgreSQL too
uvloop?: yes
Does asyncpg supports the
jsonb_path_query
function? I get an error when trying to use it (whereas it works with psycopg2):Results in:
and
Is there something I'm missing to enable perhaps?
The text was updated successfully, but these errors were encountered: