PgQuery is an interactive GUI tool for querying PostgreSQL databases. After connecting to a database server you can open views and tables, send custom sql statements, export the result to CSV (local file) or send it to KSpread to open it as a spreadsheet