7

so I recently configured and started using Pgadmin 4, managed to set up my localhost database, and my querys work properly, but for some reason I can't use the import/export dialog when I want to export my data as CSV, as it shows as greyed out. Could anyone help me out please? Image for Reference.

EDIT: The "Download as CSV (F8)" button is not working either.

enter image description here

Omaruchan
  • 403
  • 1
  • 5
  • 12

2 Answers2

6

You can just right click the table and use Import/Export option.

OR

To make Import/Export option you need to select table then click on Tools => Import/Export

And CSV download button is not working on some platform in current version that's a bug and already reported, It'll be fixed in next release.

Murtuza Z
  • 5,639
  • 1
  • 28
  • 52
1

if you are looking to export the query results , you need to do copy

COPY ([Query]) TO '[File Name]' DELIMITER ',' CSV HEADER;

Make sure you have created the file and it has all permissions to access

David Buck
  • 3,752
  • 35
  • 31
  • 35