|
|
|
|
@ -22,7 +22,7 @@ |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* IDENTIFICATION |
|
|
|
|
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.217 2001/08/03 19:43:05 tgl Exp $ |
|
|
|
|
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.218 2001/08/03 20:47:40 tgl Exp $ |
|
|
|
|
* |
|
|
|
|
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb |
|
|
|
|
* |
|
|
|
|
@ -3190,19 +3190,22 @@ dumpTypes(Archive *fout, FuncInfo *finfo, int numFuncs, |
|
|
|
|
(*deps)[depIdx++] = strdup(tinfo[i].typelem); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* XXX these are all the aligns currently handled by DefineType */ |
|
|
|
|
if (strcmp(tinfo[i].typalign, "i") == 0) |
|
|
|
|
if (strcmp(tinfo[i].typalign, "c") == 0) |
|
|
|
|
appendPQExpBuffer(q, ", alignment = char"); |
|
|
|
|
else if (strcmp(tinfo[i].typalign, "s") == 0) |
|
|
|
|
appendPQExpBuffer(q, ", alignment = int2"); |
|
|
|
|
else if (strcmp(tinfo[i].typalign, "i") == 0) |
|
|
|
|
appendPQExpBuffer(q, ", alignment = int4"); |
|
|
|
|
else if (strcmp(tinfo[i].typalign, "d") == 0) |
|
|
|
|
appendPQExpBuffer(q, ", alignment = double"); |
|
|
|
|
|
|
|
|
|
if (strcmp(tinfo[i].typstorage, "p") == 0) |
|
|
|
|
appendPQExpBuffer(q, ", storage = plain"); |
|
|
|
|
if (strcmp(tinfo[i].typstorage, "e") == 0) |
|
|
|
|
else if (strcmp(tinfo[i].typstorage, "e") == 0) |
|
|
|
|
appendPQExpBuffer(q, ", storage = external"); |
|
|
|
|
if (strcmp(tinfo[i].typstorage, "x") == 0) |
|
|
|
|
else if (strcmp(tinfo[i].typstorage, "x") == 0) |
|
|
|
|
appendPQExpBuffer(q, ", storage = extended"); |
|
|
|
|
if (strcmp(tinfo[i].typstorage, "m") == 0) |
|
|
|
|
else if (strcmp(tinfo[i].typstorage, "m") == 0) |
|
|
|
|
appendPQExpBuffer(q, ", storage = main"); |
|
|
|
|
|
|
|
|
|
if (tinfo[i].passedbyvalue) |
|
|
|
|
|