http://archives.postgresql.org/pgsql-hackers/2008-07/msg01252.php
I envision that it would be almost as easy as executing a COPY and sending the results back as a file. A few more options, but as long as you don’t have to execute a file on the filesystem, it would work for me.
pg_dump/restore would still need to be able to change names on the fly, however. I think that’s important for a number of reasons.
]]>