diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-01-16 03:54:58 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-01-16 03:54:58 +0000 |
| commit | 97e82dc72c0cabf72bcfe760073995b89d4a73d6 (patch) | |
| tree | e727d78af96f4e2840654bb922ab9946182d6d4c /src/bin/pg_dump/pg_dump.h | |
| parent | 255e07e829f07a6d7acbd58e0513de3ae20ef0a5 (diff) | |
| download | postgresql-97e82dc72c0cabf72bcfe760073995b89d4a73d6.tar.gz | |
Clean up pg_dump coredumps caused by change of output formatting for
oidvector/int2vector. pg_dump code was assuming that it would see
exactly FUNC_MAX_ARGS integers in the string returned by the backend.
That's no longer true. (Perhaps that change wasn't such a good idea
after all --- will it break any other applications??)
Diffstat (limited to 'src/bin/pg_dump/pg_dump.h')
| -rw-r--r-- | src/bin/pg_dump/pg_dump.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/bin/pg_dump/pg_dump.h b/src/bin/pg_dump/pg_dump.h index cd06288500..80c6e4928c 100644 --- a/src/bin/pg_dump/pg_dump.h +++ b/src/bin/pg_dump/pg_dump.h @@ -5,7 +5,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pg_dump.h,v 1.44 2000/01/10 17:14:40 momjian Exp $ + * $Id: pg_dump.h,v 1.45 2000/01/16 03:54:58 tgl Exp $ * * Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2 * @@ -25,14 +25,7 @@ #include "pqexpbuffer.h" #include "catalog/pg_index.h" -/* - * Very temporary hack --- remove this when all pg_dump's uses of it are gone! - */ -#define MAX_QUERY_SIZE (BLCKSZ*2) - - -/* The *Info data structures run-time C structures used to store - system catalog information */ +/* The data structures used to store system catalog information */ typedef struct _typeInfo { @@ -61,11 +54,9 @@ typedef struct _funcInfo char *proowner; int lang; int nargs; - char *argtypes[FUNC_MAX_ARGS]; /* should be derived from obj/fmgr.h - * instead of hardwired */ + char *argtypes[FUNC_MAX_ARGS]; char *prorettype; - int retset; /* 1 if the function returns a set, 0 - * otherwise */ + int retset; /* 1 if the function returns a set, else 0 */ char *prosrc; char *probin; char *usename; @@ -198,7 +189,7 @@ extern int findFuncByName(FuncInfo *finfo, int numFuncs, const char *name); extern int findTableByName(TableInfo *tbinfo, int numTables, const char *relname); extern void check_conn_and_db(void); -extern void parseArgTypes(char **argtypes, const char *str); +extern void parseNumericArray(const char *str, char **array, int arraysize); /* * version specific routines |
