Re: oddity with ALTER ROLE/USER

2019-02-23 Thread Stephen Frost
Greetings, * Tom Lane (t...@sss.pgh.pa.us) wrote: > Joe Conway writes: > > I noticed that ALTER ROLE/USER succeeds even when called without any > > options: > > > postgres=# alter user foo; > > ALTER ROLE > > postgres=# alter role foo; > > ALTER ROLE > > postgres=# alter group foo; > > ERROR: s

Re: oddity with ALTER ROLE/USER

2019-02-22 Thread Joe Conway
On 2/22/19 4:19 PM, Tom Lane wrote: > Joe Conway writes: >> I noticed that ALTER ROLE/USER succeeds even when called without any >> options: > >> postgres=# alter user foo; >> ALTER ROLE >> postgres=# alter role foo; >> ALTER ROLE >> postgres=# alter group foo; >> ERROR: syntax error at or near

Re: oddity with ALTER ROLE/USER

2019-02-22 Thread Tom Lane
Joe Conway writes: > I noticed that ALTER ROLE/USER succeeds even when called without any > options: > postgres=# alter user foo; > ALTER ROLE > postgres=# alter role foo; > ALTER ROLE > postgres=# alter group foo; > ERROR: syntax error at or near ";" > LINE 1: alter group foo; > That seems odd