alter user and alter cmd do not have same functions - Mailing list pgsql-general

From Jov
Subject alter user and alter cmd do not have same functions
Date
Msg-id CADyrUxMqe=WbByDcze9M1Owk6YGU7vNh3j=t+++UpLB8i52xgw@mail.gmail.com
Whole thread Raw
List pgsql-general
for alter user,there is a description:

ALTER USER is now an alias for ALTER ROLE.

so,people will think they are the same.but there are differences:
ALTER USER name SET configuration_parameter { TO | = } { value | DEFAULT }
ALTER USER name SET configuration_parameter FROM CURRENT
ALTER USER name RESET configuration_parameter 
ALTER USER name RESET ALL
and
ALTER ROLE name [ IN DATABASE database_name ] SET configuration_parameter { TO | = } { value | DEFAULT } ALTER ROLE name [ IN DATABASE database_name ] SET configuration_parameter FROM CURRENT
ALTER ROLE name [ IN DATABASE database_name ] RESET configuration_parameter 
ALTER ROLE name [ IN DATABASE database_name ] RESET ALL
 
I think we should either metion the differences in doc or make the have no differences. It took some time to find the later today because I most time use alter user and think it equel to alter role. 


pgsql-general by date:

Previous
From: "Tomas Vondra"
Date:
Subject: Re: "canceling autovacuum time"
Next
From: Andre Lopes
Date:
Subject: How to get a signal from the database when a INSERT INTO is done?