Re: alter user/role CURRENT_USER

Поиск
Список
Период
Сортировка
От Adam Brightwell
Тема Re: alter user/role CURRENT_USER
Дата
Msg-id CAKRt6CQF8DCHo5hTkDGe+GHZ0bow3WhDOzBt7wrg-44pzKMoqg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: alter user/role CURRENT_USER  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
All,
 
I agree that we should probably seperate the concerns here.  Personally,
I like the idea of being able to say "CURRENT_USER" in utility commands
to refer to the current user where a role would normally be expected, as
I could see it simplifying things for some applications, but that's a
new feature and independent of making role-vs-user cases more
consistent.

So, I've been doing a little digging and it would appear that the ALTER ROLE/USER consistency was brought up earlier in the year.


It was returned with feedback in Commitfest 2014-06 and apparently lost steam:


Tom put forward a suggestion for how to fix it:


I have taken that patch and updated the documentation (attached) and ran it through some cursory testing.

At any rate, this is probably a good starting point for those changes.

-Adam

--
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: DISTINCT with btree skip scan
Следующее
От: Josh Berkus
Дата:
Сообщение: Let's drop two obsolete features which are bear-traps for novices