aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/common.c
diff options
context:
space:
mode:
authorPhilip Warner <pjw@rhyme.com.au>2001-01-28 02:57:06 +0000
committerPhilip Warner <pjw@rhyme.com.au>2001-01-28 02:57:06 +0000
commit2f9bdffc37ae981e9168669ffc452e948c7e95a8 (patch)
tree235c67683da013f58e90e41cd0df909b5b3b751f /src/bin/pg_dump/common.c
parentd7f0b7ef6e99cf529e3ea7d2363962a89ff336c7 (diff)
downloadpostgresql-2f9bdffc37ae981e9168669ffc452e948c7e95a8.tar.gz
postgresql-2f9bdffc37ae981e9168669ffc452e948c7e95a8.zip
Applied (slightly modified) patches from Tatsuo:
Ok. I have made patches for fixing some of pg_dump problems(see attached patches). The patches address the problem with user defined functions, operators and aggregates.
Diffstat (limited to 'src/bin/pg_dump/common.c')
-rw-r--r--src/bin/pg_dump/common.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/pg_dump/common.c b/src/bin/pg_dump/common.c
index 67a7bc382be..d91b435be4c 100644
--- a/src/bin/pg_dump/common.c
+++ b/src/bin/pg_dump/common.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.50 2001/01/24 19:43:18 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.51 2001/01/28 02:57:06 pjw Exp $
*
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
*
@@ -86,10 +86,8 @@ findTypeByOid(TypeInfo *tinfo, int numTypes, const char *oid, OidOptions opts)
}
}
- /* should never get here */
- fprintf(stderr, "failed sanity check, type with oid %s was not found\n",
- oid);
- exit(2);
+ /* no suitable type name was found */
+ return(NULL);
}
/*
@@ -114,7 +112,9 @@ findOprByOid(OprInfo *oprinfo, int numOprs, const char *oid)
/* should never get here */
fprintf(stderr, "failed sanity check, opr with oid %s was not found\n",
oid);
- exit(2);
+
+ /* no suitable operator name was found */
+ return(NULL);
}