OSDN Git Service

Fix for large objects and case sensitivity, from Raymond Toy.
authorBruce Momjian <bruce@momjian.us>
Thu, 5 Jun 1997 22:59:45 +0000 (22:59 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 5 Jun 1997 22:59:45 +0000 (22:59 +0000)
src/backend/storage/large_object/inv_api.c
src/bin/pg_dump/pg_dump.c

index 26fab96..a258a27 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.9 1997/01/18 16:14:04 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.10 1997/06/05 22:59:29 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -109,8 +109,8 @@ inv_create(int flags)
     file_oid = newoid()+1;
     
     /* come up with some table names */
-    sprintf(objname, "Xinv%d", file_oid);
-    sprintf(indname, "Xinx%d", file_oid);
+    sprintf(objname, "xinv%d", file_oid);
+    sprintf(indname, "xinx%d", file_oid);
 
     if (SearchSysCacheTuple(RELNAME, PointerGetDatum(objname),
                            0,0,0) != NULL) {
index 1c481b7..1a2f1c1 100644 (file)
@@ -21,7 +21,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.29 1997/06/02 02:51:53 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.30 1997/06/05 22:59:45 momjian Exp $
  *
  * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
  *
@@ -1068,7 +1068,7 @@ getTables(int *numTables)
      ordering by oid is important so that we always process the parent
      tables before the child tables when traversing the tblinfo* 
 
-      we ignore tables that start with Xinv */
+      we ignore tables that start with xinv */
 
     res = PQexec(g_conn, "begin");
     if (!res || 
@@ -1081,7 +1081,7 @@ getTables(int *numTables)
     sprintf(query, 
             "SELECT oid, relname, relarch, relkind, relacl from pg_class "
             "where (relkind = 'r' or relkind = 'S') and relname !~ '^pg_' "
-            "and relname !~ '^Xinv' order by oid;");
+            "and relname !~ '^xinv' order by oid;");
 
     res = PQexec(g_conn, query);
     if (!res ||