RFC: create/alter user extension - Mailing list pgsql-hackers

From Peter Eisentraut
Subject RFC: create/alter user extension
Date
Msg-id Pine.LNX.4.20.9911121555290.1261-100000@peter-e.yi.org
Whole thread Raw
Responses Re: [HACKERS] RFC: create/alter user extension  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Is everyone okay with the following syntax:

CREATE USER username
[ WITH ID digits ]
^^^^^^^^^^^^^^^^^^
[ WITH PASSWORD password ]
[ CREATEDB   | NOCREATEDB ]
[ CREATEUSER | NOCREATEUSER ]
[ IN GROUP     groupname [, ...] ]
[ VALID UNTIL  'abstime' ]

ALTER USER username
[ WITH ID digits ]
^^^^^^^^^^^^^^^^^^
[ WITH PASSWORD password ]
[ CREATEDB | NOCREATEDB ]
[ CREATEUSER | NOCREATEUSER ]
[ IN GROUP groupname [, ...] ]
[ VALID UNTIL 'abstime' ]

The catch is that ID would have to be a new keyword and we'd have to live
with that for a long time. Other choices include:
* UID
* SYSID
* USESYSID
etc.

What do the standards and pseudo-standards say?

I think I'll take a stab at this and settle the createuser script issue
the proper way.
-Peter

-- 
Peter Eisentraut                  Sernanders vaeg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] union problem version 6.5.3
Next
From: wieck@debis.com (Jan Wieck)
Date:
Subject: Re: [HACKERS] compression in LO and other fields