From fc955b14ea667e04475e2b7339c8445611470771 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 22 Nov 1999 17:56:41 +0000 Subject: Add system indexes to match all caches. Make all system indexes unique. Make all cache loads use system indexes. Rename *rel to *relid in inheritance tables. Rename cache names to be clearer. --- src/backend/commands/user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/commands/user.c') diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index 8b5956bad14..b7bfff87102 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -5,7 +5,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: user.c,v 1.36 1999/11/21 04:16:16 tgl Exp $ + * $Id: user.c,v 1.37 1999/11/22 17:56:02 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -261,7 +261,7 @@ AlterUser(AlterUserStmt *stmt, CommandDest dest) pg_shadow_rel = heap_openr(ShadowRelationName, AccessExclusiveLock); pg_shadow_dsc = RelationGetDescr(pg_shadow_rel); - tuple = SearchSysCacheTuple(USENAME, + tuple = SearchSysCacheTuple(USERNAME, PointerGetDatum(stmt->user), 0, 0, 0); if (!HeapTupleIsValid(tuple)) @@ -374,7 +374,7 @@ RemoveUser(char *user, CommandDest dest) pg_shadow_rel = heap_openr(ShadowRelationName, AccessExclusiveLock); pg_dsc = RelationGetDescr(pg_shadow_rel); - tuple = SearchSysCacheTuple(USENAME, + tuple = SearchSysCacheTuple(USERNAME, PointerGetDatum(user), 0, 0, 0); if (!HeapTupleIsValid(tuple)) -- cgit v1.2.3