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-Tag: REL8_4_6~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec66f658999c6d19c82f437cc89d1bb0cfda2d80;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 72e80f2ca0..d68b12aedd 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -2145,7 +2145,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); @@ -2206,7 +2206,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);