| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Yoshiyuki Asaba <y-asaba(at)sraoss(dot)co(dot)jp> |
| Cc: | pgsql-patches(at)postgresql(dot)org |
| Subject: | Re: CREATEUSER == SUPERUSER? |
| Date: | 2006-01-09 18:45:40 |
| Message-ID: | 6756.1136832340@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
Yoshiyuki Asaba <y-asaba(at)sraoss(dot)co(dot)jp> writes:
> The following command makes a superuser. Is this correct?
> template1=# CREATE USER xyz CREATEUSER;
Yes, read the CREATE ROLE documentation:
CREATEUSER
NOCREATEUSER
These clauses are an obsolete, but still accepted, spelling of
SUPERUSER and NOSUPERUSER. Note that they are not equivalent to
CREATEROLE as one might naively expect!
> I think CREATEUSER keyword is equal to CREATEROLE.
The proposed patch breaks backward compatibility, which is the only
reason we still allow these keywords at all.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2006-01-09 23:32:48 | Proposed patch to change "missing FROM" messages |
| Previous Message | Tom Lane | 2006-01-09 18:20:21 | Re: [PATCHES] plpgsql: check domain constraints |