Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a668b7a

Browse files
committed
Fix for large objects and case sensitivity, from Raymond Toy.
1 parent ce2fcd0 commit a668b7a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/backend/storage/large_object/inv_api.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.9 1997/01/18 16:14:04 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.10 1997/06/05 22:59:29 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -109,8 +109,8 @@ inv_create(int flags)
109109
file_oid = newoid()+1;
110110

111111
/* come up with some table names */
112-
sprintf(objname, "Xinv%d", file_oid);
113-
sprintf(indname, "Xinx%d", file_oid);
112+
sprintf(objname, "xinv%d", file_oid);
113+
sprintf(indname, "xinx%d", file_oid);
114114

115115
if (SearchSysCacheTuple(RELNAME, PointerGetDatum(objname),
116116
0,0,0) != NULL) {

src/bin/pg_dump/pg_dump.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*
2323
* IDENTIFICATION
24-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.29 1997/06/02 02:51:53 scrappy Exp $
24+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.30 1997/06/05 22:59:45 momjian Exp $
2525
*
2626
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
2727
*
@@ -1068,7 +1068,7 @@ getTables(int *numTables)
10681068
ordering by oid is important so that we always process the parent
10691069
tables before the child tables when traversing the tblinfo*
10701070
1071-
we ignore tables that start with Xinv */
1071+
we ignore tables that start with xinv */
10721072

10731073
res = PQexec(g_conn, "begin");
10741074
if (!res ||
@@ -1081,7 +1081,7 @@ getTables(int *numTables)
10811081
sprintf(query,
10821082
"SELECT oid, relname, relarch, relkind, relacl from pg_class "
10831083
"where (relkind = 'r' or relkind = 'S') and relname !~ '^pg_' "
1084-
"and relname !~ '^Xinv' order by oid;");
1084+
"and relname !~ '^xinv' order by oid;");
10851085

10861086
res = PQexec(g_conn, query);
10871087
if (!res ||

0 commit comments

Comments
 (0)