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_3_13~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a8ba868a8d05f158d0f3d151a9d68f26e9e0329;p=postgresql 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 916cfc79ac..21a4bbd1c7 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -2171,7 +2171,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); @@ -2232,7 +2232,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);