Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ab1ox-0002ex-7v for pgsql-docs@arkaria.postgresql.org; Wed, 02 Mar 2016 08:07:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ab1ow-0006JM-J4 for pgsql-docs@arkaria.postgresql.org; Wed, 02 Mar 2016 08:07:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ab1ov-0006Id-G8 for pgsql-docs@postgresql.org; Wed, 02 Mar 2016 08:07:45 +0000 Received: from mail-io0-x231.google.com ([2607:f8b0:4001:c06::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ab1on-0007sd-Ok for pgsql-docs@postgresql.org; Wed, 02 Mar 2016 08:07:45 +0000 Received: by mail-io0-x231.google.com with SMTP id n190so48072663iof.0 for ; Wed, 02 Mar 2016 00:07:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=jrCS6rayVC5ggvZGmbaB4Qcvf4X0A1aP/dsk268ctFg=; b=0IunR6BLmGz9sawwHP0JPpK+YiS5WIFjbXjR7tyTtVtAVabdoIOYEFu+nAy7h/XBn2 drvPBVlrgBsAe6s7WofyYAdSyQI6jRSItvCNfzUCp8dy9GUauapQfQXCOwgi6Gk6HPMj mP3Iigs9bWYciTE3YIKjFAxWUG/UjRAEMYen5cyrFEjABbuPtF1tSF3JnzsaidnbaZ/F VSbMibhPZK0i9V2Bcg87+6Rs7ofeL2Q6EGfhfe49X1mav5hTb+EcyvlEC9EcKln/0GTn gBT7vMcMd+1cZy5oAXgesfiWsQ7OJ1sMoFsIDQFWPpp3KxGL+w0c4iw/TkgoN1MCfZ0W PF4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=jrCS6rayVC5ggvZGmbaB4Qcvf4X0A1aP/dsk268ctFg=; b=SR3y0rijy/V+g/Q1RuUWEVBlEpknEpnMYkR7e4/o8nfUkezgJBVJIkm4zbGpTUWePN cHSS/GxGzsA8xjcztJX+AySPzrIBNFXOwvai0CBlgiWhHPhdcDrbmrWSr//c78EngDQ5 31V4E+w2bx1Oz6DiRIHkkpAcDGQFYhfx5BiWqdjP5XUYKFOQWx9kXNh6q0sRMXLoFvfR TlJM0KPvb3ln1lhkoeZMnhrAKtzUzn5mR/KFI9aZovmGc/zpwjvz+e8AzZtScuKJmhjc RV/PadwM8rwnQ2DKWm9OVeYI01yGrDp256qbn+RILg1GnuinOKxQDIa/80gmvTMbljpS 4MfA== X-Gm-Message-State: AD7BkJKEGXCBMN+LBaSv5fmE1IKa8Ch/Dii9UMpfoe2WAZqDiMNe+GhAd/FHubgrt+j5SqHtg9vNPclVwuII8w== MIME-Version: 1.0 X-Received: by 10.107.155.80 with SMTP id d77mr3951229ioe.59.1456906055973; Wed, 02 Mar 2016 00:07:35 -0800 (PST) Received: by 10.107.40.146 with HTTP; Wed, 2 Mar 2016 00:07:35 -0800 (PST) Date: Wed, 2 Mar 2016 00:07:35 -0800 Message-ID: Subject: Getting Started section From: Maciek Sakrejda To: pgsql-docs@postgresql.org Content-Type: multipart/alternative; boundary=001a11409fcaf00368052d0c5f07 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org --001a11409fcaf00368052d0c5f07 Content-Type: text/plain; charset=UTF-8 I just spent some time helping a former colleague work out some basic setup issues after he got stuck trying to follow the Getting Started section of the manual [1] and almost gave up. For what it's worth, he's very technical, but does not deal with Postgres setup regularly. The problems he ran into are fairly trivial, but I can see how he was frustrated: the article makes very few assumptions about your environment (which is great), but as a result is really vague and full of evasive suggestions to "contact your administrator" if something is not working (not great). All I had to do (on Ubunutu) was run `sudo -u postgres createuser -s $(whoami)`, and then omit the hostname (connecting to postgres:///maciek) to use socket connections so I could take advantage of peer authentication to avoid having to specify my password everywhere. The same thing worked for him (on Debian, I believe). Obviously this is not a solution for everyone, but I think packaging is more common and more standardized these days, and administrators who may have set up Postgres for you and can help you get started are less common. I'm not sure how to address his frustrations, and balance that with avoiding too many assumptions about users' environments, but it seems many successful tools these days have explicit, platform-specific sections of their setup to ensure that users can get started quickly and painlessly. Could the Getting Started guide be improved here? Thoughts? Thanks, Maciek [1]: http://www.postgresql.org/docs/9.4/static/tutorial-createdb.html --001a11409fcaf00368052d0c5f07 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I just spent some time helping a former colleague wor= k out some basic setup issues after he got stuck trying to follow the Getti= ng Started section of the manual [1] and almost gave up. For what it's = worth, he's very technical, but does not deal with Postgres setup regul= arly.

The problems he ran into are fairly trivial,= but I can see how he was frustrated: the article makes very few assumption= s about your environment (which is great), but as a result is really vague = and full of evasive suggestions to "contact your administrator" i= f something is not working (not great).

All I had = to do (on Ubunutu) was run `sudo -u postgres createuser -s $(whoami)`, and = then omit the hostname (connecting to postgres:///maciek) to use socket con= nections so I could take advantage of peer authentication to avoid having t= o specify my password everywhere. The same thing worked for him (on Debian,= I believe).

Obviously this is not a solution for = everyone, but I think packaging is more common and more standardized these = days, and administrators who may have set up Postgres for you and can help = you get started are less common.

I'm not sure = how to address his frustrations, and balance that with avoiding too many as= sumptions about users' environments, but it seems many successful tools= these days have explicit, platform-specific sections of their setup to ens= ure that users can get started quickly and painlessly. Could the Getting St= arted guide be improved here? Thoughts?

--001a11409fcaf00368052d0c5f07--