mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
First step done,
below is the patch to have views to override the permission
checks for the accessed tables. Now we can do the following:
CREATE VIEW db_user AS SELECT
usename,
usesysid,
usecreatedb,
usetrace,
usecatupd,
'**********'::text as passwd,
valuntil
FROM pg_user;
REVOKE ALL ON pg_user FROM public;
REVOKE ALL ON db_user FROM public;
GRANT SELECT ON db_user TO public;
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: parsenodes.h,v 1.47 1998/02/10 16:04:26 momjian Exp $
|
||||
* $Id: parsenodes.h,v 1.48 1998/02/21 06:32:02 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -864,6 +864,7 @@ typedef struct RangeTblEntry
|
||||
Oid relid;
|
||||
bool inh; /* inheritance? */
|
||||
bool inFromCl; /* comes from From Clause */
|
||||
bool skipAcl; /* skip ACL check in executor */
|
||||
} RangeTblEntry;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user