mirror of https://github.com/postgres/postgres
Don't raise "identifier will be truncated" messages in dblink
except creating new connections.
This commit is contained in:
parent
acbffaa77d
commit
268da29219
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue