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

This commit is contained in:
Bruce Momjian 1997-06-05 22:59:45 +00:00
parent ce2fcd0180
commit a668b7ac2d
2 changed files with 6 additions and 6 deletions

View 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) {

View 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 ||