Don't raise "identifier will be truncated" messages in dblink
authorItagaki Takahiro <[email protected]>
Thu, 25 Nov 2010 11:12:20 +0000 (20:12 +0900)
committerItagaki Takahiro <[email protected]>
Fri, 26 Nov 2010 09:10:00 +0000 (18:10 +0900)
except creating new connections.

contrib/dblink/dblink.c

index 7cb8cd4a2d610674fc7eb3b1dbd3d058e3c5da53..962e2577dac5354c6ceae8b42d1c0ffdd2eec855 100644 (file)
@@ -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);