Skip to content

Commit 4a3f42a

Browse files
committed
Dropped unneeded error check
if pgut_execute fails it bails out.
1 parent 2335a4d commit 4a3f42a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

bin/pg_repack.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,12 +1024,6 @@ repack_one_table(const repack_table *table, const char *orderby)
10241024
* pg_locks momentarily.
10251025
*/
10261026
res = pgut_execute(conn2, "SELECT pg_backend_pid()", 0, NULL);
1027-
if (PQresultStatus(res) != PGRES_TUPLES_OK)
1028-
{
1029-
printf("%s", PQerrorMessage(conn2));
1030-
have_error = true;
1031-
goto cleanup;
1032-
}
10331027
buffer[0] = '\0';
10341028
strncat(buffer, PQgetvalue(res, 0, 0), sizeof(buffer) - 1);
10351029
CLEARPGRES(res);

0 commit comments

Comments
 (0)