1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-08 06:02:22 +03:00

Code review: minor cleanups, make the world safe for unsigned OIDs.

Improve documentation, too.
This commit is contained in:
Tom Lane
2000-11-22 00:00:55 +00:00
parent 90cfa9ac19
commit c2d1b3919b
6 changed files with 198 additions and 136 deletions

View File

@@ -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)
{