yugabyte/yugabyte-db

[YSQL] Output the result of COMMIT or ROLLBACK

Open

#29 929 ouverte le 10 janv. 2026

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)C (1 003 forks)batch import
area/ysqlgood first issuekind/bugpriority/mediumstatus/awaiting-triage

Métriques du dépôt

Stars
 (8 229 stars)
Métriques de merge PR
 (Merge moyen 17j 21h) (92 PRs mergées en 30 j)

Description

Jira Link: DB-19783

Description

Better to output the result of COMMIT instead of repeating the command since that correctly checks that the txn committed or rolled back.

Here's the code change expected

 $ git diff -- src/postgres/src/test/isolation/isolationtester.c
diff --git a/src/postgres/src/test/isolation/isolationtester.c b/src/postgres/src/test/isolation/isolationtester.c
index dd53d8b0e5..10a788c988 100644
--- a/src/postgres/src/test/isolation/isolationtester.c
+++ b/src/postgres/src/test/isolation/isolationtester.c
@@ -1079,6 +1079,8 @@ try_complete_step(TestSpec *testspec, PermutationStep *pstep, int flags)
                switch (PQresultStatus(res))
                {
                        case PGRES_COMMAND_OK:
+                               printf("%s\n", PQcmdStatus(res));
+                               break;
                        case PGRES_EMPTY_QUERY:
                                break;
                        case PGRES_TUPLES_OK:

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

Guide contributeur