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

Commit972c7c6

Browse files
author
Etsuro Fujita
committed
postgres_fdw: Fix comments in connection.c.
Commit27e1f14 missed updating some comments.Reviewed-by: Bharath RupireddyBackpatch-through: 14Discussion:https://postgr.es/m/CAPmGK15Q2Nm6U%2Ba_GwskrWFEVBZ9_3VKOvRrprGufpx91M_3Sw%40mail.gmail.com
1 parent700c733 commit972c7c6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

‎contrib/postgres_fdw/connection.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ GetConnection(UserMapping *user, bool will_prep_stmt, PgFdwConnState **state)
197197
make_new_connection(entry,user);
198198

199199
/*
200-
* We check the health of the cached connection here whenstarting a new
201-
*remote transaction. If a broken connection is detected, we try to
202-
* reestablish a new connection later.
200+
* We check the health of the cached connection here whenusing it. In
201+
*cases where we're out of all transactions, if a broken connection is
202+
*detected, we try toreestablish a new connection later.
203203
*/
204204
PG_TRY();
205205
{
@@ -215,9 +215,7 @@ GetConnection(UserMapping *user, bool will_prep_stmt, PgFdwConnState **state)
215215
ErrorData*errdata=CopyErrorData();
216216

217217
/*
218-
* If connection failure is reported when starting a new remote
219-
* transaction (not subtransaction), new connection will be
220-
* reestablished later.
218+
* Determine whether to try to reestablish the connection.
221219
*
222220
* After a broken connection is detected in libpq, any error other
223221
* than connection failure (e.g., out-of-memory) can be thrown

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp