pgsql/src/backend/commands (command.c creatinh.c user.c) - Mailing list pgsql-committers

From Bruce Momjian - CVS
Subject pgsql/src/backend/commands (command.c creatinh.c user.c)
Date
Msg-id 200006091550.e59Foi108216@hub.org
Whole thread Raw
List pgsql-committers
  Date: Friday, June  9, 2000 @ 11:50:43
Author: momjian

Update of /home/projects/pgsql/cvsroot/pgsql/src/backend/commands
     from hub.org:/home/projects/pgsql/tmp/cvs-serv8015/pgsql/src/backend/commands

Modified Files:
    command.c creatinh.c user.c

-----------------------------  Log Message  -----------------------------

 I have large database and with this DB work more users and I very need
more restriction for fretful users. The current PG allow define only
NO-CREATE-DB and NO-CREATE-USER restriction, but for some users I need
NO-CREATE-TABLE and NO-LOCK-TABLE.

This patch add to current code NOCREATETABLE and NOLOCKTABLE feature:

CREATE USER username
    [ WITH
     [ SYSID uid ]
     [ PASSWORD 'password' ] ]
    [ CREATEDB   | NOCREATEDB ] [ CREATEUSER | NOCREATEUSER ]
->  [ CREATETABLE | NOCREATETABLE ] [ LOCKTABLE | NOLOCKTABLE ]
    ...etc.

 If CREATETABLE or LOCKTABLE is not specific in CREATE USER command,
as default is set CREATETABLE or LOCKTABLE (true).

 A user with NOCREATETABLE restriction can't call CREATE TABLE or
SELECT INTO commands, only create temp table is allow for him.

                                                Karel


pgsql-committers by date:

Previous
From: Vince Vielhaber
Date:
Subject: [WEBMASTER] 'www/html gen-info.html'
Next
From: Bruce Momjian - CVS
Date:
Subject: pgsql/src/backend/tcop (pquery.c)