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

Commit2051fd3

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 parentef2e107 commit2051fd3

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
@@ -195,9 +195,9 @@ GetConnection(UserMapping *user, bool will_prep_stmt, PgFdwConnState **state)
195195
make_new_connection(entry,user);
196196

197197
/*
198-
* We check the health of the cached connection here whenstarting a new
199-
*remote transaction. If a broken connection is detected, we try to
200-
* reestablish a new connection later.
198+
* We check the health of the cached connection here whenusing it. In
199+
*cases where we're out of all transactions, if a broken connection is
200+
*detected, we try toreestablish a new connection later.
201201
*/
202202
PG_TRY();
203203
{
@@ -213,9 +213,7 @@ GetConnection(UserMapping *user, bool will_prep_stmt, PgFdwConnState **state)
213213
ErrorData*errdata=CopyErrorData();
214214

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp