]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Don't raise "identifier will be truncated" messages in dblink
authorItagaki Takahiro <itagaki.takahiro@gmail.com>
Thu, 25 Nov 2010 11:12:20 +0000 (20:12 +0900)
committerItagaki Takahiro <itagaki.takahiro@gmail.com>
Thu, 25 Nov 2010 11:15:02 +0000 (20:15 +0900)
except creating new connections.

contrib/dblink/dblink.c

index 2478884f0a497d4b64d9967a78624f55760c37c3..cef58946a43723f0ad1ec7e3b45fd76c167acd2c 100644 (file)
@@ -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);