Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 8BD4C9FA1DA for ; Sun, 10 Dec 2006 00:06:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 80123-05 for ; Sun, 10 Dec 2006 00:06:30 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from web90504.mail.mud.yahoo.com (web90504.mail.mud.yahoo.com [216.252.100.171]) by postgresql.org (Postfix) with SMTP id 10F279FA18C for ; Sun, 10 Dec 2006 00:06:29 -0400 (AST) Received: (qmail 90332 invoked by uid 60001); 10 Dec 2006 04:06:29 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=hngtjAFowbQgCdmGBtu4sjOStXgT5PpQ6cBYrkDrC4hTR8tm2TDzXxol1+s6PD+DI1EE7c4xPjJq5eqaHa1DQxxhi9iBVcydLdhe7orZbmnoWh+9F/BMluDo7n6A3LYCOGt8PKVLEyCSMslDPaS1UpSPhfOA/mz/urnvDWs34Q4=; X-YMail-OSG: ovvJ99UVM1n3ORha3HqYlAaFeCMx2_ErBkujcuURx8phCJ22IFKvz.D2nQnrpOFyx3e0CyOwZcQzzaYQP5SxW1pcKKemOlblDlEhz5IWh9dUH5RBcA9l36d_ucYZ6s7.61XNcDGV9BUFDZc8B7qWDN.XKxXE3rVzn.Q- Received: from [70.19.76.226] by web90504.mail.mud.yahoo.com via HTTP; Sat, 09 Dec 2006 20:06:29 PST Date: Sat, 9 Dec 2006 20:06:29 -0800 (PST) From: Philippe Salama Subject: Re: \c bpsimple rick To: Tom Lane Cc: PostgreSQL Admin In-Reply-To: <27890.1165721846@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-950053530-1165723589=:90329" Content-Transfer-Encoding: 8bit Message-ID: <421940.90329.qm@web90504.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.041 tagged_above=0 required=5 tests=AWL, BAYES_00, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS, HTML_MESSAGE X-Spam-Level: * X-Archive-Number: 200612/132 X-Sequence-Number: 23924 --0-950053530-1165723589=:90329 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit The book has no date I can see, but I purchased it several years ago, and it speaks of PostgreSQL 8 as being new. As soon as I find the link again to subscribe to the novice forum, I shall do so, and not post in Admin. Thanks! Tom Lane wrote: Philippe Salama writes: > My textbook had me create a user named rick, with the power to create databases, but not the power to create new users. > in the next exercise, I am in template1 as user neil, who has the prompt =# which means that neil has power to create databases. I am told to \c bpsimple rick, and it says NOTICE THE PROMPT changes to =>, meaning rick has no power to create databases. How old is your textbook? What the # prompt actually means is that you are a "superuser", which means you can do anything at all within PostgreSQL (equivalent to root on a Unix system, and I-dunno-what on Windows). Creating databases is a lesser privilege. It used to be that creating users was only allowed to a superuser, but now we have a lesser privilege that allows non-superusers to create more (non-super) users. In any case, if you are superuser you can definitely do both of those things. If the book equates the # prompt to create-database privilege then it's flat out wrong, or at least has been for as long as I can remember. If it equates # to create-user privilege then it's only been wrong for the last release or two. regards, tom lane --------------------------------- Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. --0-950053530-1165723589=:90329 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit The book has no date I can see, but I purchased it several years ago, and it speaks of PostgreSQL 8 as being new.

As soon as I find the link again to subscribe to the novice forum, I shall do so, and not post in Admin.  Thanks!

Tom Lane <tgl@sss.pgh.pa.us> wrote:
Philippe Salama writes:
> My textbook had me create a user named rick, with the power to create databases, but not the power to create new users.
> in the next exercise, I am in template1 as user neil, who has the prompt =# which means that neil has power to create databases. I am told to \c bpsimple rick, and it says NOTICE THE PROMPT changes to =>, meaning rick has no power to create databases.

How old is your textbook?

What the # prompt actually means is that you are a "superuser", which
means you can do anything at all within PostgreSQL (equivalent to root
on a Unix system, and I-dunno-what on Windows). Creating databases
is a lesser privilege. It used to be that creating users was only
allowed to a superuser, but now we have a lesser privilege that allows
non-superusers to create more (non-super) users. In any case, if you
are superuser you can definitely do both of those things.

If the book equates the # prompt to create-database privilege then it's
flat out wrong, or at least has been for as long as I can remember.
If it equates # to create-user privilege then it's only been wrong for
the last release or two.

regards, tom lane


Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. --0-950053530-1165723589=:90329--