You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/15 15:51:32 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #21586: Fix postgres part of pipeline example of tutorial

potiuk commented on a change in pull request #21586:
URL: https://github.com/apache/airflow/pull/21586#discussion_r806993319



##########
File path: docs/apache-airflow/tutorial.rst
##########
@@ -373,11 +373,42 @@ We need to have Docker and Postgres installed.
 We will be using this `docker file <https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html#docker-compose-yaml>`_
 Follow the instructions properly to set up Airflow.
 
-Create a Employee table in Postgres using this:
+We need to add a connection to Postgres. Go to the UI and click "Admin" >> "Connections". Specify the following for each field:
+
+- Conn id: LOCAL
+- Conn Type: postgres
+- Host: postgres
+- Schema: <DATABASE_NAME>
+- Login: airflow
+- Password: airflow
+- Port: 5432
+
+Alternatively, you can use the postgres_default connection. If one uses this, one should change the value of ``postgres_conn_id`` in the DAG definition:

Review comment:
       ```suggestion
   You can use the postgres_default connection. You should change the value of ``postgres_conn_id`` in the DAG definition:
   ```




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org