From: | Jasen Betts <jasen(at)xnet(dot)co(dot)nz> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: GRANT all to a super user |
Date: | 2009-06-01 09:23:06 |
Message-ID: | h006lq$nj7$1@reversiblemaps.ath.cx |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 2009-05-27, Gauthier, Dave <dave(dot)gauthier(at)intel(dot)com> wrote:
> --_000_482E80323A35A54498B8B70FF2B87980040AEFF544azsmsx504amrc_
> Content-Type: text/plain; charset="us-ascii"
> Content-Transfer-Encoding: quoted-printable
>
> What is the (is there a) grant command that I can use to create a super use=
> r without having to specify all the DB objects?
SUPERUSER cant be GRANTed, it's done with ALTER USER instead..
ALTER USER fred WITH SUPERUSER.
as a superuser fred can now do anything that other superusers (eg, "postgres")
can do. ( ie: create users, etc..) if you don't want that you may instead want
to grant fred the role of the database ownwer,
assuming the database owner is "dave"
GRANT dave TO fred;
use WITH ADMIN OPTION at the end if you want to let fred invite bill
to the party too.
From | Date | Subject | |
---|---|---|---|
Next Message | Grzegorz Jaśkiewicz | 2009-06-01 09:53:08 | xml to table (as oppose to table to xml) |
Previous Message | Scara Maccai | 2009-06-01 07:22:21 | ZFS & disk cache |