*** pgbench.c Wed Jan 6 10:37:51 2010 --- pgbench.debug.c Thu Jan 7 15:03:40 2010 *************** *** 810,815 **** --- 810,835 ---- switch (PQresultStatus(res)) { case PGRES_COMMAND_OK: + /* DEBUG */ + if (atoi(PQcmdTuples(res)) != 1 && + strncmp(commands[st->state]->argv[0], "UPDATE", 6) == 0) + { + int i; + + fprintf(stderr, "[%d] miss update: %s => %s\n", + st->id, + commands[st->state]->argv[0], + PQcmdStatus(res)); + for (i = 0; i < st->nvariables; i++) + { + fprintf(stderr, "[%d] variable: %s = %s\n", + st->id, + st->variables[i].name, + st->variables[i].value); + } + } + break; /* OK */ + /* DEBUG */ case PGRES_TUPLES_OK: break; /* OK */ default: