feluelle commented on code in PR #26436:
URL: https://github.com/apache/airflow/pull/26436#discussion_r974065661
##########
airflow/providers/postgres/hooks/postgres.py:
##########
@@ -95,7 +100,7 @@ def get_conn(self) -> connection:
host=conn.host,
user=conn.login,
password=conn.password,
- dbname=self.schema or conn.schema,
+ dbname=self.database or conn.schema,
Review Comment:
I don't want to add a new feature for adding this in the connection. We can
add that separately if really necesseary.
I have documented how users can set the default schema as an additional
query or use PostgresOperator runtime params to run the searchpath option
before the queries get executed.
--
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]