From: Itagaki Takahiro Date: Thu, 25 Nov 2010 11:12:20 +0000 (+0900) Subject: Don't raise "identifier will be truncated" messages in dblink X-Git-Tag: REL8_2_19~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eaf0766d74ebf5975fc07344abb2bea599329d7e;p=thirdparty%2Fpostgresql.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 2478884f0a4..cef58946a43 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -2166,7 +2166,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); @@ -2227,7 +2227,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);