Fix #363, prepare postgresql parameters for streaming
release 0.6.22