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_1_23~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=268da2921907e7b5b1e9b0990957181a8dd7b410;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 7cb8cd4a2d6..962e2577dac 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -2022,7 +2022,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); @@ -2083,7 +2083,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);