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


##########
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:
   Can you please explain why this is needed ? `hook_params` already exists in 
providers-common-sql/1.3.1 if that is the reason.



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