Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit39a3bdc

Browse files
author
Etsuro Fujita
committed
postgres_fdw: Remove useless if-test in GetConnection().
Checking whether entry->conn is NULL after doing disconnect_pg_server()for that entry is pointless, as that function ensures that it is NULL.Thinko in commit7fc1a81; this would be harmless, so patch HEAD only.Reviewed-by: Richard Guo and Daniel GustafssonDiscussion:https://postgr.es/m/CAPmGK169vQ83PQwQkoxO-AK2EeK1EsgsxixedM%2BBLWEAhZ_AqQ%40mail.gmail.com
1 parentbfc9497 commit39a3bdc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎contrib/postgres_fdw/connection.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,7 @@ GetConnection(UserMapping *user, bool will_prep_stmt, PgFdwConnState **state)
271271
entry->conn);
272272
disconnect_pg_server(entry);
273273

274-
if (entry->conn==NULL)
275-
make_new_connection(entry,user);
274+
make_new_connection(entry,user);
276275

277276
begin_remote_xact(entry);
278277
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp