Re: [HACKERS] Inconsistent syntax in GRANT
От | Tom Lane |
---|---|
Тема | Re: [HACKERS] Inconsistent syntax in GRANT |
Дата | |
Msg-id | 25908.1136608406@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] Inconsistent syntax in GRANT (Marko Kreen <markokr@gmail.com>) |
Ответы |
Re: [HACKERS] Inconsistent syntax in GRANT
Re: [HACKERS] Inconsistent syntax in GRANT |
Список | pgsql-patches |
Marko Kreen <markokr@gmail.com> writes: > Good point about compatibility. But makes the common case ugly. > "For regular usage you need to grant SELECT, USAGE ..." Huh? :) > How about this: > SELECT: currval > INSERT: nextval > UPDATE: nextval, setval > USAGE: nextval, currval Seems a little weird. Hmm ... what is the use-case for allowing someone to do nextval but not currval? I can't see one. How about we simplify this to SELECT: currval UPDATE: nextval, setval USAGE: nextval, currval This is still upward compatible with our old behavior, which is SELECT: currval UPDATE: nextval, setval and it still meets the SQL spec's requirement that USAGE allow nextval, and USAGE is the only one you need for "normal" usage. regards, tom lane
В списке pgsql-patches по дате отправления: