FM
FlowMarket
Social Media & Content Beginner ⚡ 4 n8n Nodes

Convert PostgreSQL table to CSV

Convert PostgreSQL table to CSV CSV is a super useful and universal way to transfer data between different tools. This workflow gives an example of how to ta...

🔌 Nodes & Integrations Used (1)

n8n Core Logic

📖 Implementation & Setup Guide

Convert PostgreSQL table to CSV CSV is a super useful and universal way to transfer data between different tools. This workflow gives an example of how to take data from PostgreSQL and convert it easily into a CSV.

What you need Before running the workflow, please make sure you have access to a remote PostgreSQL server and have table data:

``` book_title,book_author,read_date Demons,Fyodor Dostoyevsky,2022-09-08 Ulysses,James Joyce,2022-05-06 Catch-22,Joseph Heller,2023-01-04 The Bell Jar,Sylvia Plath,2023-01-21 Frankenstein,Mary Shelley,2023-02-14 ``` ## How it works 1. Trigger the workflow on click 2. Declare the name of the Excel file and sheet names 3. Remotely connect to the PostgreSQL database and specify query execution 4. Write the query data to CSV

The detailed process is explained further in the tutorial: [https://blog.n8n.io/postgres-export-to-csv/](https://blog.n8n.io/postgres-export-to-csv/)

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Convert PostgreSQL table to CSV.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related Social Media & Content Workflows

View All in Social Media & Content →