|
20 | 20 | * |
21 | 21 | * |
22 | 22 | * IDENTIFICATION |
23 | | - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.4 1996/07/27 02:29:51 scrappy Exp $ |
| 23 | + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.5 1996/07/31 06:09:46 scrappy Exp $ |
24 | 24 | * |
25 | 25 | * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb |
26 | 26 | * |
|
51 | 51 | #endif |
52 | 52 |
|
53 | 53 | #include"postgres.h" |
| 54 | +#include"access/htup.h" |
54 | 55 | #include"libpq-fe.h" |
55 | 56 |
|
56 | 57 | #include"pg_dump.h" |
@@ -1309,7 +1310,10 @@ dumpIndices(FILE* fout, IndInfo* indinfo, int numIndices, |
1309 | 1310 | tableInd=findTableByName(tblinfo,numTables, |
1310 | 1311 | indinfo[i].indrelname); |
1311 | 1312 | indkey=atoi(indinfo[i].indkey)-1; |
1312 | | -attname=tblinfo[tableInd].attnames[indkey]; |
| 1313 | +if (indkey==ObjectIdAttributeNumber-1) |
| 1314 | +attname="oid"; |
| 1315 | +else |
| 1316 | +attname=tblinfo[tableInd].attnames[indkey]; |
1313 | 1317 | if (strcmp(indinfo[i].indproc,"0")==0) { |
1314 | 1318 | funcname=NULL; |
1315 | 1319 | }else { |
|