From: Craig Ringer <ringerc@ringerc.id.au>
To: nirodha <erikwinnmail@yahoo.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6251: cannot create roles that can actually login
Date: Wed, 12 Oct 2011 10:45:46 +0800
Message-ID: <4E94FF5A.3080102@ringerc.id.au> (raw)
In-Reply-To: <201110110801.p9B81PMV041838@wwwmaster.postgresql.org>
References: <201110110801.p9B81PMV041838@wwwmaster.postgresql.org>
On 10/11/2011 04:01 PM, nirodha wrote:
>
> The following bug has been logged online:
>
> Bug reference: 6251
> Logged by: nirodha
> Email address: erikwinnmail@yahoo.com
> PostgreSQL version: 8.4
> Operating system: ubuntu
> Description: cannot create roles that can actually login
> Details:
>
> I literally cut and paste the commands from the manual to create a role
> after about two hours of repetition and reading .. yes, "with login" "with
> login password 'foo'", whatever. Tried createuser - I have to be honest; 3
> hours later and I am ready to go back to MySQL. Documentation is sparse
If there are specific holes in the documentation it'd be *extremely*
useful to hear about them, as it's not easy for people who already know
Pg well to spot areas that need better documentation to help people new
to Pg. Please be specific if you can.
The documentation at
http://www.postgresql.org/docs/9.1/interactive/index.html has been in
my experience pretty complete and I've been very happy with it, so I'm a
bit surprised to hear your comment. I'd love to know more about areas
you found lacking.
> there is no forum on the site
There's a strong preference for mailing lists in most of the community,
but I think eventually a forum will be necessary because many people are
stopping using email and mailing lists.
There's a lot of activity on Stack Overflow, and on the EnterpriseDB web
forums, so there's more than just the mailing list to play with. That
said, I think most of the experts hang out here.
Personally I loathe forums, and am strongly disinclined to use them
unless they're gatewayed to a mailing list. With a forum, I have to go
to it and check it periodically. With a mailing list, it comes to me and
I can manage it in the same UI as all sorts of other things.
> I am a bit disappointed after all the hype
> about how great postgres is .. 3 hours later and I cant even create a user
> that can login!
I'm surprised by that one.
Is your pg_hba.conf set to the defaults? If so, I think on Ubuntu you'll
be using `ident' authentication by default, so the PostgreSQL username
would need to be the same as the system username. If that's not what you
want, change to using `md5' authentication to force the use of a password.
For what it's worth, I found the default ident auth a bit confusing when
I first started using PostgreSQL. I wish there was a way to do fallback
from ident to md5, so that if ident auth fails the client can auth using
md5 password exchange. As it is, the behavior or rejecting auth when an
apparently valid password is provided - because it's never actually used
- is not very user friendly.
Being able to support something like "md5,ident" as an auth type in
pg_hba.conf would be great. Unfortunately, it's not currently supported.
By the way, it's generally preferable to email the
pgsql-general@postgresql.org mailing list; this is a bug report form.
--
Craig Ringer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: ringerc@ringerc.id.au, erikwinnmail@yahoo.com
Subject: Re: BUG #6251: cannot create roles that can actually login
In-Reply-To: <4E94FF5A.3080102@ringerc.id.au>
References: <201110110801.p9B81PMV041838@wwwmaster.postgresql.org> <4E94FF5A.3080102@ringerc.id.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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