Hi This thread was finished without real work. I have a real use case - export XML doc in non utf8 encoding.
http://www.postgresql.org/message-id/16174.1319228...@sss.pgh.pa.us I propose to implement new format option "RAW" like Tom proposed. It requires only one row, one column result - and result is just raw binary data without size. Objections? Ideas? Regards Pavel