yakovlef commented on issue #76455:
URL: https://github.com/apache/airflow/issues/76455#issuecomment-6667856124

   Checked this on main with Postgres 14 and psycopg 3.3.6. The CTAS example 
works for me, but CREATE VIEW, SET and multi-statement scripts with parameters 
fail via PostgresHook.run(). All of them work with psycopg.ClientCursor.
   
   Maybe a client_side_binding option on PostgresHook (hook_params + connection 
extra, off by default) that sets cursor_factory=ClientCursor? Happy to open a 
PR if that sounds ok.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to