From a668b7ac2d95bbac8107c4622de2ea4962909c04 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Thu, 5 Jun 1997 22:59:45 +0000
Subject: [PATCH] Fix for large objects and case sensitivity, from Raymond Toy.

---
 src/backend/storage/large_object/inv_api.c | 6 +++---
 src/bin/pg_dump/pg_dump.c                  | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/backend/storage/large_object/inv_api.c b/src/backend/storage/large_object/inv_api.c
index 26fab964ef0..a258a270513 100644
--- a/src/backend/storage/large_object/inv_api.c
+++ b/src/backend/storage/large_object/inv_api.c
@@ -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) {
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 1c481b78ac2..1a2f1c19dcb 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -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 || 
-- 
GitLab