This is an automated email from the ASF dual-hosted git repository.

shahar1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new d2c865ff014 Remove unused Postgres cursor name generator (#75786)
d2c865ff014 is described below

commit d2c865ff0142b24cc773c7a1431f420fe7a0f131
Author: Hussein Awala <[email protected]>
AuthorDate: Tue Oct 27 22:07:00 2026 +0100

    Remove unused Postgres cursor name generator (#75786)
    
    The private server-side cursor name generator has no callers in the 
repository.
---
 providers/postgres/src/airflow/providers/postgres/hooks/postgres.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git 
a/providers/postgres/src/airflow/providers/postgres/hooks/postgres.py 
b/providers/postgres/src/airflow/providers/postgres/hooks/postgres.py
index 7f8064c9b2b..2c6c9253e49 100644
--- a/providers/postgres/src/airflow/providers/postgres/hooks/postgres.py
+++ b/providers/postgres/src/airflow/providers/postgres/hooks/postgres.py
@@ -290,12 +290,6 @@ class PostgresHook(DbApiHook):
 
         return ppg2_connect(**conn_args)
 
-    def _generate_cursor_name(self):
-        """Generate a unique name for server-side cursor."""
-        import uuid
-
-        return f"airflow_cursor_{uuid.uuid4().hex}"
-
     def get_conn(self) -> CompatConnection:
         """Establish a connection to a postgres database."""
         conn = deepcopy(self.connection)

Reply via email to