pgsql: Fix performance regression in dblink connection speed. - Mailing list pgsql-committers

From Joe Conway
Subject pgsql: Fix performance regression in dblink connection speed.
Date
Msg-id E1VpSlK-00013S-7d@gemulon.postgresql.org
Whole thread Raw
List 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d6ca510d9dbacceb3444f00fcfbba2c80dca4c8f

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


pgsql-committers by date:

Previous
From: Magnus Hagander
Date:
Subject: pgsql: Fix a couple of typos
Next
From: Joe Conway
Date:
Subject: pgsql: Fix performance regression in dblink connection speed.