]> granicus.if.org Git - postgresql/commit
Fix performance regression in dblink connection speed.
authorJoe Conway <mail@joeconway.com>
Sun, 8 Dec 2013 01:00:10 +0000 (17:00 -0800)
committerJoe Conway <mail@joeconway.com>
Sun, 8 Dec 2013 01:00:10 +0000 (17:00 -0800)
commit0ec530625f1cc0a17d975f925fed5d3ab469c6f8
treeb3cb06d190062232822a9a9ef408efa327b05f3a
parent2dcc48c35af5305fba0d8cb5e31fa0c25f52d13f
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