diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-11-24 16:52:50 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-11-24 16:52:50 +0000 |
commit | 74f418eb9aeecbb34d004aae44e96df037f2dc25 (patch) | |
tree | 54a73119e8b6de840ff005b96ca4b991355952cb /src/backend/commands/user.c | |
parent | 61a93ed2da5adbacc57cc3b4b00805a7e3c868df (diff) | |
download | postgresql-74f418eb9aeecbb34d004aae44e96df037f2dc25.tar.gz postgresql-74f418eb9aeecbb34d004aae44e96df037f2dc25.zip |
Add pg_statistic index, add missing Hiroshi file.
Diffstat (limited to 'src/backend/commands/user.c')
-rw-r--r-- | src/backend/commands/user.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index b7bfff87102..27a11cbcaf1 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.37 1999/11/22 17:56:02 momjian Exp $ + * $Id: user.c,v 1.38 1999/11/24 16:52:32 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(USERNAME, + tuple = SearchSysCacheTuple(SHADOWNAME, 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(USERNAME, + tuple = SearchSysCacheTuple(SHADOWNAME, PointerGetDatum(user), 0, 0, 0); if (!HeapTupleIsValid(tuple)) |