From: Itagaki Takahiro Date: Thu, 25 Nov 2010 10:40:58 +0000 (+0900) Subject: Don't raise "identifier will be truncated" messages in dblink X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d3c126544342728ab4b5c167b4f4b01a39270db5;p=pg-rex%2Fsyncrep.git Don't raise "identifier will be truncated" messages in dblink except creating new connections. --- diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index 30f1b0eab0..2db12d5103 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -2089,7 +2089,7 @@ getConnectionByName(const char *name) remoteConnHash = createConnHash(); key = pstrdup(name); - truncate_identifier(key, strlen(key), true); + truncate_identifier(key, strlen(key), false); hentry = (remoteConnHashEnt *) hash_search(remoteConnHash, key, HASH_FIND, NULL); @@ -2150,7 +2150,7 @@ deleteConnection(const char *name) remoteConnHash = createConnHash(); key = pstrdup(name); - truncate_identifier(key, strlen(key), true); + truncate_identifier(key, strlen(key), false); hentry = (remoteConnHashEnt *) hash_search(remoteConnHash, key, HASH_REMOVE, &found);