How to Export a PostgreSQL Table to CSV (Using pgAdmin 4)

Published: 05 June 2025
on channel: Ferds Tech Channel
1,340
9

In this video, I will show you how to export a PostgreSQL table into a CSV file.
Below are the steps I followed in the video.

Step 1: Open pgAdmin 4
Launch pgAdmin 4 on your system.
Connect to your PostgreSQL server.

Step 2: Locate Your Table
In the Browser panel:
Servers → your server → Databases → your database → Schemas → public → Tables
Expand the Tables section and find your target table (e.g., network_devices).

Step 3: Right-Click the Table
Right-click on the table name (e.g., network_devices).
Select "Import/Export Data..."

Step 4: Choose Export Settings
In the Import/Export Data window:
Under General tab:
Import/Export: Choose Export
Filename: Choose where to save the CSV file (e.g., C:\Users\YourName\Documents\network_devices.csv)
Format: CSV
Encoding: UTF8

Under Options tab:
Check Header to include column names in the CSV
Leave Delimiter as comma (,)
Leave Quote, Escape, Null string settings as default unless needed

Under Columns tab:
Leave all columns selected (default) if you want to export the entire table

Step 5: Click OK
Click OK to begin exporting the table
You should see a message like “Process completed successfully” if the export worked

Step 6: Verify the Export
Navigate to the file location you selected
Open the CSV file using Excel or any text editor to confirm the data was exported correctly

#postgresql #coding #sql


On this page of the site you can watch the video online How to Export a PostgreSQL Table to CSV (Using pgAdmin 4) with a duration of hours minute second in good quality, which was uploaded by the user Ferds Tech Channel 05 June 2025, share the link with friends and acquaintances, this video has already been watched 1,340 times on youtube and it was liked by 9 viewers. Enjoy your viewing!