8000 Don't raise "identifier will be truncated" messages in dblink · justtesting112233/postgres@ec66f65 · GitHub
[go: up one dir, main page]

Skip to content

Commit ec66f65

Browse files
committed
Don't raise "identifier will be truncated" messages in dblink
except creating new connections.
1 parent fab2af3 commit ec66f65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/dblink/dblink.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,7 +2145,7 @@ getConnectionByName(const char *name)
21452145
remoteConnHash = createConnHash();
21462146

21472147
key = pstrdup(name);
2148-
truncate_identifier(key, strlen(key), true);
2148+
truncate_identifier(key, strlen(key), false);
21492149
hentry = (remoteConnHashEnt *) hash_search(remoteConnHash,
21502150
key, HASH_FIND, NULL);
21512151

@@ -2206,7 +2206,7 @@ deleteConnection(const char *name)
22062206
remoteConnHash = createConnHash();
22072207

22082208
key = pstrdup(name);
2209-
truncate_identifier(key, strlen(key), true);
2209+
truncate_identifier(key, strlen(key), false);
22102210
hentry = (remoteConnHashEnt *) hash_search(remoteConnHash,
22112211
key, HASH_REMOVE, &found);
22122212

0 commit comments

Comments
 (0)
0