? src/bin/pg_dump/.deps ? src/bin/pg_dump/common.c.working ? src/bin/pg_dump/pg_dump ? src/bin/pg_dump/pg_dump.c.working ? src/bin/pg_dump/pg_dump.h.working ? src/bin/pg_dump/pg_dumpall ? src/bin/pg_dump/pg_restore Index: src/bin/pg_dump/pg_dump.c =================================================================== RCS file: /projects/cvsroot/pgsql-server/src/bin/pg_dump/pg_dump.c,v retrieving revision 1.370 diff -c -r1.370 pg_dump.c *** src/bin/pg_dump/pg_dump.c 24 Mar 2004 03:06:08 -0000 1.370 --- src/bin/pg_dump/pg_dump.c 16 May 2004 14:42:55 -0000 *************** *** 7726,7733 **** --- 7726,7741 ---- myFormatType(const char *typname, int32 typmod) { char *result; + bool isarray = false; PQExpBuffer buf = createPQExpBuffer(); + /* Handle array types */ + if (typname[0] == '_') + { + isarray = true; + typname++; + } + /* Show lengths on bpchar and varchar */ if (!strcmp(typname, "bpchar")) { *************** *** 7770,7775 **** --- 7778,7787 ---- appendPQExpBuffer(buf, "\"char\""); else appendPQExpBuffer(buf, "%s", fmtId(typname)); + + /* Append array qualifier for array types */ + if (isarray) + appendPQExpBuffer(buf, "[]"); result = strdup(buf->data); destroyPQExpBuffer(buf);