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

Commit0bc1e7d

Browse files
committed
Print more detailed eror code
1 parentc03d1e5 commit0bc1e7d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎contrib/multimaster/multimaster.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,11 @@ mm_stop_replication(PG_FUNCTION_ARGS)
12021202
staticboolMMRunUtilityStmt(PGconn*conn,charconst*sql)
12031203
{
12041204
PGresult*result=PQexec(conn,sql);
1205-
boolret=PQresultStatus(result)==PGRES_COMMAND_OK;
1205+
intstatus=PQresultStatus(result);
1206+
boolret=status==PGRES_COMMAND_OK;
1207+
if (!ret) {
1208+
elog(WARNING,"Command '%s' failed with status %d",sql,status);
1209+
}
12061210
PQclear(result);
12071211
returnret;
12081212
}

‎contrib/multimaster/tests/perf.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
-name:run transfers
4747
shell:>
4848
~/pg_cluster/install/bin/dtmbench {{connections}}
49-
-w {{ nconns }} -r1 -n5000 -a 500000 -p {{ up }} |
49+
-w {{ nconns }} -r0 -n100000 -a 500000 -p {{ up }} |
5050
tee -a perf.results |
5151
sed "s/^/`hostname`:/"
5252
register:transfers_result

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp