]> granicus.if.org Git - postgresql/commit
Fix performance regression in dblink connection speed.
authorJoe Conway <mail@joeconway.com>
Sun, 8 Dec 2013 00:58:41 +0000 (16:58 -0800)
committerJoe Conway <mail@joeconway.com>
Sun, 8 Dec 2013 00:58:41 +0000 (16:58 -0800)
commit9057adc23252be03056088e606fa13d174493578
treecf41a63a484d7a5b4f69df72a5dd214b8c53e2da
parent36352ceb40bd6b19b0595f7d8bb93cc64897abbb
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