1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00
seems  that  my last post didn't make it through. That's good
    since  the  diff  itself  didn't  covered  the  renaming   of
    pg_user.h to pg_shadow.h and it's new content.

    Here  it's  again.  The  complete regression test passwd with
    only some  float  diffs.  createuser  and  destroyuser  work.
    pg_shadow cannot be read by ordinary user.
This commit is contained in:
Marc G. Fournier
1998-02-25 13:09:49 +00:00
parent d067f83b27
commit 780068f812
25 changed files with 260 additions and 144 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.14 1998/02/11 19:12:49 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.15 1998/02/25 13:07:50 scrappy Exp $
*
* NOTES
* These routines allow the parser/planner/executor to perform
@ -48,7 +48,7 @@
#include "catalog/pg_type.h"
#include "catalog/pg_rewrite.h"
#include "catalog/pg_aggregate.h"
#include "catalog/pg_user.h"
#include "catalog/pg_shadow.h"
#include "storage/large_object.h"
#include "catalog/pg_listener.h"
@ -254,22 +254,22 @@ static struct cachedesc cacheinfo[] = {
sizeof(FormData_pg_listener),
NULL,
(ScanFunc) NULL},
{UserRelationName, /* USENAME */
{ShadowRelationName, /* USENAME */
1,
{Anum_pg_user_usename,
{Anum_pg_shadow_usename,
0,
0,
0},
sizeof(FormData_pg_user),
sizeof(FormData_pg_shadow),
NULL,
(ScanFunc) NULL},
{UserRelationName, /* USESYSID */
{ShadowRelationName, /* USESYSID */
1,
{Anum_pg_user_usesysid,
{Anum_pg_shadow_usesysid,
0,
0,
0},
sizeof(FormData_pg_user),
sizeof(FormData_pg_shadow),
NULL,
(ScanFunc) NULL},
{GroupRelationName, /* GRONAME */