Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f07uG-0007kq-Qr for pgsql-docs@arkaria.postgresql.org; Sun, 25 Mar 2018 15:50:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f07uF-0006Z0-Ch for pgsql-docs@arkaria.postgresql.org; Sun, 25 Mar 2018 15:50:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f07uF-0006Yr-1W for pgsql-docs@lists.postgresql.org; Sun, 25 Mar 2018 15:50:03 +0000 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f07u7-0003iL-LK for pgsql-docs@lists.postgresql.org; Sun, 25 Mar 2018 15:50:01 +0000 Received: by mail-qt0-x242.google.com with SMTP id l18so949947qtj.1 for ; Sun, 25 Mar 2018 08:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Lep0ggWJzYljDBhhNdfFK/xBVsH0Yi85J3weK3a3anQ=; b=WUQY6S1Pyh/RWjQyxP7QoE36Abas5sduh7vU6SNDHm6fGJpoPruvC+mImPy1z9aq/X zxygPUGdpgPk96FWvOzoWUjGRX4ORzrx2i/3egzU0tDJgkVxlpPhIjyGVTa0wZjwrMU0 KHiEmnZyEm6+WIo6Z0q3Px9Hu8nqCUoKIUrd8E2Y3eu0SKziu5KrFVLYpOALvBislS7p 31uTwGr1X28p1UNpGINtyHWyemlBEE2LGLWrkM1PH61Pzz5wRXz8glfoIgrc6IQoW3aS eYwAPST/+Uo+57ALShowe6Ipb8deUA+6KlOP2CFn5eVVD1XDvdo1qRzR408Qhp2g3bGe HL4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Lep0ggWJzYljDBhhNdfFK/xBVsH0Yi85J3weK3a3anQ=; b=Cb4MOJgdo1JwTdeapef16FJvbifLlKz/wXBbujn7V5lkqeJagNyhFBn7IROI/OqFOy jTNdIssqqxrJ0D5NUa8xYk0HDXsNx8FwuajzuY65Ih9WsLm0WU6E/5IwIrJQ1/om4WS2 BZ9Bac6aeP2ATu7EenPoN1E7Ml/cM/w4qUynkOfV1Unf2rpkwxntxs1u6RjBD3Eb+52F K5OmLwMx0TL+5Fejuc3w5zUxSeg1ib3UUax4If/Opjtg8Qe0Q+KDV2E/4qLUR7NGBkk8 kJZ9pnbTKhAvs9oc/dB3dcLjKY9jvhKcvQy3OL5MsxWb4S8atAhfZBmM7gPbSsXPcEcR f0PA== X-Gm-Message-State: AElRT7FU6hy4umDhUWO0+RAApxzJ3s7dDf2iEQYtpUQhHMof6CCjb91c SO/a2SdFHOKmxS5j0gMafPuf9z1Av3zxMVFeaJk= X-Google-Smtp-Source: AG47ELvRQhMGVrlZQIzfCrf41gQpul8wh/x08XSM8iDV714UUNp2w7JXDF7U+87lhrJdUgudm0VFmS7g5WYhePNBMNk= X-Received: by 10.200.45.180 with SMTP id p49mr23683571qta.242.1521992994240; Sun, 25 Mar 2018 08:49:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.157.78 with HTTP; Sun, 25 Mar 2018 08:49:53 -0700 (PDT) In-Reply-To: <152199176304.4544.10483267369608570877@wrigleys.postgresql.org> References: <152199176304.4544.10483267369608570877@wrigleys.postgresql.org> From: "David G. Johnston" Date: Sun, 25 Mar 2018 08:49:53 -0700 Message-ID: Subject: Re: Getting started guide does not start from first step To: "matthew.boman@gmail.com" , "pgsql-docs@lists.postgresql.org" Content-Type: multipart/alternative; boundary="001a113fa132c5bda905683e9b77" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --001a113fa132c5bda905683e9b77 Content-Type: text/plain; charset="UTF-8" On Sunday, March 25, 2018, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/9.0/static/tutorial-createdb.html > Description: You should learn from the most recent version of the docs, 10. 9.0 is obsolete. > > I'm new to PostgreSQL and following the getting started guide. I expected > it > to start from zero, but it assumes the reader already has a database up and > running and is already connected to it. There are many different "zero" points - which is touched on in the "installation" chapter. > > 1.3 Creating a database > I got here and tried the command `createdb mydb`, but it didn't work. I had > connected to the database (sudo su - postgres) and thought that was the > only > step because the command prompt was now `postgre@username`. su doesn't connect one to the database, it changes the active o/s user. Not sure about the prompt... You say it didn't work but I'm suspicious you are mistaken. The guide says "If this produces no response then this step was successful and you can skip over the remainder of this section." > > After quite a > bit of beginner searching on the internet, I found I then had to type > `psql` > to actually connect. > > It'd be really great for new users if the Getting Started guide was more of > a walkthrough that contained all the steps--even those little ones of > getting connected that experienced users overlook. > The very next chapter is "accessing a database" ... it's first command is "psql mydb" David J. --001a113fa132c5bda905683e9b77 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Sunday, March 25, 2018, PG Doc comments form <noreply@postgresql.org> wrote:
The following documentation comment has been logged= on the website:

Page: https://www.postgresql.org/docs/9.0/static/= tutorial-createdb.html
Description:

You should learn from the most= recent version of the docs, 10. =C2=A09.0 is obsolete.
=C2=A0

I'm new to PostgreSQL and following the getting started guide. I expect= ed it
to start from zero, but it assumes the reader already has a database up and=
running and is already connected to it.

The= re are many different "zero" points - which is touched on in the = "installation" chapter.
=C2=A0

1.3 Creating a database
I got here and tried the command `createdb mydb`, but it didn't work. I= had
connected to the database (sudo su - postgres) and thought that was the onl= y
step because the command prompt was now `postgre@username`.=C2=A0

su doesn't connect one to the database, it chang= es the active o/s user.=C2=A0 Not sure about the prompt...

You say it didn't work but I'm suspicious you are mistaken= .=C2=A0 The guide says "If this produces no response then this step = was successful and you can skip over the remainder of this section."

After quite a
bit of beginner searching on the internet, I found I then had to type `psql= `
to actually connect.

It'd be really great for new users if the Getting Started guide was mor= e of
a walkthrough that contained all the steps--even those little ones of
getting connected that experienced users overlook.

The very next chapter is "accessing a= database" ... it's first command is "psql mydb"

David J.
--001a113fa132c5bda905683e9b77--