Question

Is it possible to run multiple PostgreSQL queries, and using pgadmin3 have them each export to a separate tab on a XLSX file?

On those same lines, is it possible to run one PostgresQL query that exports to multiple tabs based on some criteria?

Was it helpful?

Solution

You'll want to use an external tool for this. PostgreSQL knows nothing about the XLSX format, nor about OpenDocument or any of that.

I suggest writing a script that exports a bunch of individual CSV files with copy. Then using an external tool to convert them to xlsx and assemble them into sheets in the document.

It's possible that ETL tools like CloverETL, Pentaho Kettle, or Talend Studio may do what you want too. I haven't checked this specific functionality.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top