diff options
Diffstat (limited to 'contrib/pg_dumplo/utils.c')
-rw-r--r-- | contrib/pg_dumplo/utils.c | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/contrib/pg_dumplo/utils.c b/contrib/pg_dumplo/utils.c index 70bfb8b5dbc..a5c30debe20 100644 --- a/contrib/pg_dumplo/utils.c +++ b/contrib/pg_dumplo/utils.c @@ -1,3 +1,13 @@ +/* ------------------------------------------------------------------------- + * pg_dumplo + * + * Portions Copyright (c) 1999-2000, PostgreSQL, Inc + * + * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/utils.c,v 1.2 2000/11/22 00:00:55 tgl Exp $ + * + * Karel Zak 1999-2000 + * ------------------------------------------------------------------------- + */ #include <stdio.h> #include <unistd.h> @@ -58,22 +68,6 @@ index_file(LODumpMaster *pgLO) } } -int -check_res(LODumpMaster *pgLO) -{ - if (!pgLO->res && PQresultStatus(pgLO->res) != PGRES_COMMAND_OK) { - fprintf(stderr, "%s: %s\n", progname, PQerrorMessage(pgLO->conn)); - PQclear(pgLO->res); - return FALSE; - } - if (PQresultStatus(pgLO->res) != PGRES_TUPLES_OK) { - fprintf(stderr, "%s: Tuples is not OK.\n", progname); - PQclear(pgLO->res); - return FALSE; - } - return TRUE; -} - static void Dummy_NoticeProcessor(void * arg, const char * message) { |