From 4a3f42ab70026d2557d28506392790b6c71fcfd4 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 17 Apr 2013 17:46:15 +0100 Subject: [PATCH] Dropped unneeded error check if pgut_execute fails it bails out. --- bin/pg_repack.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bin/pg_repack.c b/bin/pg_repack.c index f50a4ab..d40a953 100644 --- a/bin/pg_repack.c +++ b/bin/pg_repack.c @@ -1024,12 +1024,6 @@ repack_one_table(const repack_table *table, const char *orderby) * pg_locks momentarily. */ res = pgut_execute(conn2, "SELECT pg_backend_pid()", 0, NULL); - if (PQresultStatus(res) != PGRES_TUPLES_OK) - { - printf("%s", PQerrorMessage(conn2)); - have_error = true; - goto cleanup; - } buffer[0] = '\0'; strncat(buffer, PQgetvalue(res, 0, 0), sizeof(buffer) - 1); CLEARPGRES(res);