1111 *
1212 *
1313 * IDENTIFICATION
14- * $PostgreSQL: pgsql/src/bin/pg_dump/common.c,v 1.81 2004/03/03 21:28:54 tgl Exp $
14+ * $PostgreSQL: pgsql/src/bin/pg_dump/common.c,v 1.82 2004/05/20 17:13:52 tgl Exp $
1515 *
1616 *-------------------------------------------------------------------------
1717 */
@@ -50,8 +50,8 @@ static int numCatalogIds = 0;
5050 * them into findTableByOid() and friends.
5151 */
5252static TableInfo * tblinfo ;
53- static TypeInfo * tinfo ;
54- static FuncInfo * finfo ;
53+ static TypeInfo * typinfo ;
54+ static FuncInfo * funinfo ;
5555static OprInfo * oprinfo ;
5656static int numTables ;
5757static int numTypes ;
@@ -101,12 +101,12 @@ getSchemaData(int *numTablesPtr,
101101
102102 if (g_verbose )
103103 write_msg (NULL , "reading user-defined functions\n" );
104- finfo = getFuncs (& numFuncs );
104+ funinfo = getFuncs (& numFuncs );
105105
106106 /* this must be after getFuncs */
107107 if (g_verbose )
108108 write_msg (NULL , "reading user-defined types\n" );
109- tinfo = getTypes (& numTypes );
109+ typinfo = getTypes (& numTypes );
110110
111111 /* this must be after getFuncs, too */
112112 if (g_verbose )
@@ -631,7 +631,7 @@ findTableByOid(Oid oid)
631631
632632/*
633633 * findTypeByOid
634- * finds the entry (in tinfo ) of the type with the given oid
634+ * finds the entry (in typinfo ) of the type with the given oid
635635 * returns NULL if not found
636636 *
637637 * NOTE: should hash this, but just do linear search for now
@@ -643,15 +643,15 @@ findTypeByOid(Oid oid)
643643
644644 for (i = 0 ; i < numTypes ; i ++ )
645645 {
646- if (tinfo [i ].dobj .catId .oid == oid )
647- return & tinfo [i ];
646+ if (typinfo [i ].dobj .catId .oid == oid )
647+ return & typinfo [i ];
648648 }
649649 return NULL ;
650650}
651651
652652/*
653653 * findFuncByOid
654- * finds the entry (in finfo ) of the function with the given oid
654+ * finds the entry (in funinfo ) of the function with the given oid
655655 * returns NULL if not found
656656 *
657657 * NOTE: should hash this, but just do linear search for now
@@ -663,8 +663,8 @@ findFuncByOid(Oid oid)
663663
664664 for (i = 0 ; i < numFuncs ; i ++ )
665665 {
666- if (finfo [i ].dobj .catId .oid == oid )
667- return & finfo [i ];
666+ if (funinfo [i ].dobj .catId .oid == oid )
667+ return & funinfo [i ];
668668 }
669669 return NULL ;
670670}
0 commit comments