Skip to content

Commit

Permalink
refresh-materialized-view: use client side cursor
Browse files Browse the repository at this point in the history
Remove the argument to `db.cursor()` to use a client-side cursor.
For some reason, using a server-side cursor suppresses errors.
  • Loading branch information
joverlee521 committed May 19, 2020
1 parent 4b446ff commit 92407d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/id3c/cli/command/refresh_materialized_view.py
Expand Up @@ -28,7 +28,7 @@ def refresh_materialized_view(schema_name, view_name, db: DatabaseSession):

LOG.info(f"Refreshing materialized view «{schema_name}.{view_name}»")

db.cursor("refresh materialized view").execute("""
db.cursor().execute("""
select refresh_materialized_view(%s, %s)
""", (schema_name, view_name ))

Expand Down

0 comments on commit 92407d1

Please sign in to comment.