For the time being, I've basically given up on this -- we're using netcat hooked to `psql` and allowing the client to use raw SQL. This is obviously not a long term solution, but it does allow us to proceed in the short term.
--_jsn