brianc/node-postgres — pull request #291 by wgraeber (2013-03-05 20:52:25+00:00)
Title: Potential fix for client_encoding error

error: unrecognized configuration parameter "lient_encoding"
at p.parseE (/xx/node_modules/pg/lib/connection.js:503:11)
at p.parseMessage (/xx/node_modules/pg/lib/connection.js:363:17)
at CleartextStream.p.attachListeners (/xx/node_modules/pg/lib/connection.js:90:18)
at CleartextStream.EventEmitter.emit (events.js:96:17)
at CleartextStream.CryptoStream._push (tls.js:540:12)
at SecurePair.cycle (tls.js:898:20)
at EncryptedStream.CryptoStream.write (tls.js:285:13)
at Socket.ondata (stream.js:38:26)
at Socket.EventEmitter.emit (events.js:96:17)
at TCP.onread (net.js:397:14)

http://www.postgresql.org/docs/current/static/libpq-connect.html also looks like this should be specified more like "client_encoding 'utf8'" rather than "options --client_encoding='utf8'"

Feel free to shoot me down if this is completely off. I'm testing with OS X as a client and psql 9.1 on OpenBSD as a server.