> For the complete documentation index, see [llms.txt](https://docs.acho.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acho.io/acho-studio/data-flow/export-data/connect-postgresql-database.md).

# PostgreSQL

1\. Go to **Workflows** and click **Create Workflow**.

![](/files/gc4MSKtwQSRfq8G1hg1R)

2\. Select a project and click **Create**. (Before creating a new workflow, you have to [create a resource](/acho-studio/resources/add-a-resource.md) first and then [import the resource to a project](/acho-studio/data-prep-projects/create-a-project.md).)

![](/files/5gLB0CbZmkUlxBkRALsI)

3\. In Workflow, drag **PostgreSQL** from the right sidebar to the canvas.&#x20;

![](/files/vY7OetrZBhhHCbhLt7XY)

4\. Configure your PostgreSQL destination. (Remember to white list Acho's IP address: **`35.239.14.244`**)

* Host
* Port
* Username
* Password
* Database

![](/files/8nIsmCHrCQK1XtScofvn)

5\. Once your PostgreSQL is set up successfully, your can find a <img src="/files/XUVjABlrtvBATkg8s3Nq" alt="" data-size="line"> tag on your destination node. In addition, your PostgreSQL database will be stored in **Existing Database**, so next time you can drag it to the Workflow directly without filling out credentials.&#x20;

![](/files/dN59UmO4fSy4jbYShmeg)

6\. Connect the table to your PostgreSQL database.

![](/files/Yx87iT81VnCUXgQQ9eL3)

7\. Choose the **replication method** and click **Save.** When you export data to PostgreSQL, Acho will create a new table in your PostgreSQL. When your project table is updated, your table in PostgreSQL will be updated as well. The replication method is to determine how to update your table in PostgreSQL.

* **Incremental:** Append the new table to your PostgreSQL table.
* **Full Refresh:** Replace your PostgreSQL table with the new table.

![](/files/S1tlXM8raptXGuQDxEZB)

8\. You can schedule **Data Sync** for your project table. Once you project table is updated, new data will be exported to your database automatically.&#x20;

![](/files/xcgTH9JTjDPZd8y4lIUX)
