dstandish commented on code in PR #50788:
URL: https://github.com/apache/airflow/pull/50788#discussion_r2098389258


##########
airflow-core/src/airflow/migrations/versions/0049_3_0_0_remove_pickled_data_from_xcom_table.py:
##########
@@ -77,9 +77,24 @@ def upgrade():
     condition = condition_templates.get(dialect)
     if not condition:
         raise RuntimeError(f"Unsupported dialect: {dialect}")
-
     # Key is a reserved keyword in MySQL, so we need to quote it
     quoted_key = conn.dialect.identifier_preparer.quote("key")
+    if dialect == "postgresql":
+        curr_timeout = (
+            int(
+                list(  # noqa: RUF015
+                    conn.execute(
+                        text("""select setting
+        from pg_settings
+        where name = 'statement_timeout'""")
+                    )
+                )[0][0]
+            )
+            / 1000
+        )

Review Comment:
   i'll try it



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