pgsql: Fix performance regression in dblink connection speed.

From: Joe Conway <mail(at)joeconway(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix performance regression in dblink connection speed.
Date: 2013-12-08 01:03:21
Message-ID: E1VpSmH-00015p-Ri@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6c8b16e30a2f8f32087fe5bf77213613bb8f9b21

Modified Files
--------------
contrib/dblink/dblink.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2013-12-08 11:01:35 pgsql: Fix pg_stat_statements build on 32-bit systems
Previous Message Joe Conway 2013-12-08 01:03:14 pgsql: Fix performance regression in dblink connection speed.