mobuchowski commented on code in PR #40171:
URL: https://github.com/apache/airflow/pull/40171#discussion_r1663901695


##########
docs/apache-airflow-providers-postgres/operators/postgres_operator_howto_guide.rst:
##########
@@ -157,6 +157,23 @@ class.
       params={"begin_date": "2020-01-01", "end_date": "2020-12-31"},
   )
 
+
+Enable logging of database messages sent to the client
+-------------------------------------------------------------
+
+SQLExecuteQueryOperator provides ``hook_params`` attribute that allows you to 
pass add parameters to DbApiHook.
+You can use ``enable_log_db_messages`` to log database messages or errors 
emitted by the ``RAISE`` statement.
+
+.. code-block:: python
+
+  call_proc = SQLExecuteQueryOperator(
+      task_id="call_proc",
+      conn_id="postgres_default",
+      sql="call proc();",
+      hook_params={"enable_log_db_messages": True},

Review Comment:
   You need to bump required version of `common.sql` provider in that case. 
Otherwise it won't work, and it's just 1.3.1 in Postgres provider.



-- 
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