aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItagaki Takahiro <itagaki.takahiro@gmail.com>2010-11-25 20:12:20 +0900
committerItagaki Takahiro <itagaki.takahiro@gmail.com>2010-11-25 20:12:20 +0900
commit0a8ba868a8d05f158d0f3d151a9d68f26e9e0329 (patch)
tree7009526b334c99c8967cae2af93ac633893977ce
parent6cb9d51133a2e42f107074f64fee704c90aa9df9 (diff)
downloadpostgresql-0a8ba868a8d05f158d0f3d151a9d68f26e9e0329.tar.gz
postgresql-0a8ba868a8d05f158d0f3d151a9d68f26e9e0329.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 916cfc79ac5..21a4bbd1c75 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);