Document-based Objective-C Cocoa application, acting as client for PostgreSQL databases.
Based on PostgreSQL Cocoa framework.

Features
Save queries history and connection settings in a document
Display results in table view with automatic selection of "best" cell format for data type
Select columns to be displayed and change column's order
Export results in CSV, TAB-seperated, XML or SQL format
AppleScript support with (document-based connection) or without (application-level connection) GUI feedback
Read server information: environment variables, settings and server-side variables, connection formation and connection defaults


See screenshots

PgQuery is available as
Free: no export functionality available
Registered, full functionality
Developer, source code included