]> granicus.if.org Git - postgresql/commit
Fix performance regression in dblink connection speed.
authorJoe Conway <mail@joeconway.com>
Sun, 8 Dec 2013 00:56:34 +0000 (16:56 -0800)
committerJoe Conway <mail@joeconway.com>
Sun, 8 Dec 2013 00:56:34 +0000 (16:56 -0800)
commit6c8b16e30a2f8f32087fe5bf77213613bb8f9b21
treebc271fc390a065d05664a8e9f6a8a14c982fc142
parent7635dae5522735ce87dd50959feedd9c8a4a8786
Fix performance regression in dblink connection speed.

Previous commit e5de601267d98c5d60df6de8d436685c7105d149 modified dblink
to ensure client encoding matched the server. However the added
PQsetClientEncoding() call added significant overhead. Restore original
performance in the common case where client encoding already matches
server encoding by doing nothing in that case. Applies to all active
branches.

Issue reported and work sponsored by Zonar Systems.
contrib/dblink/dblink.c