Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 6C571B5DBDF for ; Tue, 11 Oct 2011 23:45:59 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 82883-05 for ; Wed, 12 Oct 2011 02:45:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-vx0-f174.google.com (mail-vx0-f174.google.com [209.85.220.174]) by mail.postgresql.org (Postfix) with ESMTP id D6350B5DBD6 for ; Tue, 11 Oct 2011 23:45:52 -0300 (ADT) Received: by vcbgb30 with SMTP id gb30so201264vcb.19 for ; Tue, 11 Oct 2011 19:45:53 -0700 (PDT) Received: by 10.52.29.77 with SMTP id i13mr21421450vdh.20.1318387552621; Tue, 11 Oct 2011 19:45:52 -0700 (PDT) Received: from ayaki.localdomain ([119.11.11.201]) by mx.google.com with ESMTPS id cx10sm889617vdb.11.2011.10.11.19.45.49 (version=SSLv3 cipher=OTHER); Tue, 11 Oct 2011 19:45:52 -0700 (PDT) Message-ID: <4E94FF5A.3080102@ringerc.id.au> Date: Wed, 12 Oct 2011 10:45:46 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 MIME-Version: 1.0 To: nirodha CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6251: cannot create roles that can actually login References: <201110110801.p9B81PMV041838@wwwmaster.postgresql.org> In-Reply-To: <201110110801.p9B81PMV041838@wwwmaster.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201110/90 X-Sequence-Number: 31360 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