aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItagaki Takahiro <itagaki.takahiro@gmail.com>2010-11-25 19:40:58 +0900
committerItagaki Takahiro <itagaki.takahiro@gmail.com>2010-11-25 19:40:58 +0900
commitd3c126544342728ab4b5c167b4f4b01a39270db5 (patch)
tree0e85bca24fa4ee68aee89ac640b1d4e5b9563bc5
parent2d1e426650fc93e5dfdd0178023485d38b03b102 (diff)
downloadpostgresql-d3c126544342728ab4b5c167b4f4b01a39270db5.tar.gz
postgresql-d3c126544342728ab4b5c167b4f4b01a39270db5.zip
Don't raise "identifier will be truncated" messages in dblink
except creating new connections.
-rw-r--r--contrib/dblink/dblink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c
index 30f1b0eab02..2db12d51034 100644
--- a/contrib/dblink/dblink.c
+++ b/contrib/dblink/dblink.c
@@ -2089,7 +2089,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);
@@ -2150,7 +2150,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);