pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
\c bpsimple rick
4+ messages / 2 participants
[nested] [flat]

* \c bpsimple rick
@ 2006-12-10 00:13  Philippe Salama <karebacnyc@yahoo.com>
  0 siblings, 2 replies; 4+ messages in thread

From: Philippe Salama @ 2006-12-10 00:13 UTC (permalink / raw)
  To: pgsql-admin

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.

I am confused, since clearly, I created user/role rick as someone with the power to create databases.



 
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: \c bpsimple rick
@ 2006-12-10 00:40  Philippe Salama <karebacnyc@yahoo.com>
  parent: Philippe Salama <karebacnyc@yahoo.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Philippe Salama @ 2006-12-10 00:40 UTC (permalink / raw)
  To: Philippe Salama <karebacnyc@yahoo.com>; pgsql-admin

I am guessing that my confusion is over something which may be a typo in the text book.

I have moved along and have now make good progress in running with \i the sql scripts which may be downloaded from 

http://www.apress.com/book/supplementDownload.html?bID=424&sID=2569

the publisher of the book,

to define tables for the exercises, and load the tables with data.

So, thanks for the help here to get me started!

Philippe Salama <karebacnyc@yahoo.com> wrote: 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.

I am confused, since clearly, I created user/role rick as someone with the power to create databases.


   

---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.

 
---------------------------------
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: \c bpsimple rick
@ 2006-12-10 03:37  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Philippe Salama <karebacnyc@yahoo.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Tom Lane @ 2006-12-10 03:37 UTC (permalink / raw)
  To: Philippe Salama <karebacnyc@yahoo.com>; +Cc: pgsql-admin

Philippe Salama <karebacnyc@yahoo.com> 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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: \c bpsimple rick
@ 2006-12-10 04:06  Philippe Salama <karebacnyc@yahoo.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Philippe Salama @ 2006-12-10 04:06 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin

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.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2006-12-10 04:06 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-12-10 00:13 \c bpsimple rick Philippe Salama <karebacnyc@yahoo.com>
2006-12-10 00:40 ` Philippe Salama <karebacnyc@yahoo.com>
2006-12-10 03:37 ` Tom Lane <tgl@sss.pgh.pa.us>
2006-12-10 04:06   ` Philippe Salama <karebacnyc@yahoo.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox