Commit a668b7ac authored by Bruce Momjian's avatar Bruce Momjian

Fix for large objects and case sensitivity, from Raymond Toy.

parent ce2fcd01
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -109,8 +109,8 @@ inv_create(int flags)
file_oid = newoid()+1; file_oid = newoid()+1;
/* come up with some table names */ /* come up with some table names */
sprintf(objname, "Xinv%d", file_oid); sprintf(objname, "xinv%d", file_oid);
sprintf(indname, "Xinx%d", file_oid); sprintf(indname, "xinx%d", file_oid);
if (SearchSysCacheTuple(RELNAME, PointerGetDatum(objname), if (SearchSysCacheTuple(RELNAME, PointerGetDatum(objname),
0,0,0) != NULL) { 0,0,0) != NULL) {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* *
* *
* IDENTIFICATION * 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 * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
* *
...@@ -1068,7 +1068,7 @@ getTables(int *numTables) ...@@ -1068,7 +1068,7 @@ getTables(int *numTables)
ordering by oid is important so that we always process the parent ordering by oid is important so that we always process the parent
tables before the child tables when traversing the tblinfo* 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"); res = PQexec(g_conn, "begin");
if (!res || if (!res ||
...@@ -1081,7 +1081,7 @@ getTables(int *numTables) ...@@ -1081,7 +1081,7 @@ getTables(int *numTables)
sprintf(query, sprintf(query,
"SELECT oid, relname, relarch, relkind, relacl from pg_class " "SELECT oid, relname, relarch, relkind, relacl from pg_class "
"where (relkind = 'r' or relkind = 'S') and relname !~ '^pg_' " "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); res = PQexec(g_conn, query);
if (!res || if (!res ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment