First step done,

Marc G. Fournier <scrappy@hub.org>

Commit: 7b30490bc9cebef913f6f95cd0487a3c6989dafa
Author: Marc G. Fournier <scrappy@hub.org>
Date: 1998-02-21T06:32:15Z
Releases: 7.1.1
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;

Files