Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRkiW-0002xM-AH for pgsql-bugs@arkaria.postgresql.org; Sun, 02 Jul 2017 19:39:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dRkiV-0003QD-Oi for pgsql-bugs@arkaria.postgresql.org; Sun, 02 Jul 2017 19:39:35 +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.84_2) (envelope-from ) id 1dRkiV-0003Q3-7c for pgsql-bugs@postgresql.org; Sun, 02 Jul 2017 19:39:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dRkiS-0000w7-OX for pgsql-bugs@postgresql.org; Sun, 02 Jul 2017 19:39:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v62JdVs4026901; Sun, 2 Jul 2017 15:39:31 -0400 From: Tom Lane To: rthomques@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14727: Inicial running of Postgres. In-reply-to: <20170702184708.1477.72000@wrigleys.postgresql.org> References: <20170702184708.1477.72000@wrigleys.postgresql.org> Comments: In-reply-to rthomques@gmail.com message dated "Sun, 02 Jul 2017 18:47:08 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26899.1499024371.1@sss.pgh.pa.us> Date: Sun, 02 Jul 2017 15:39:31 -0400 Message-ID: <26900.1499024371@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org rthomques@gmail.com writes: > I got this prompt: > ast login: Sun Jul 2 15:27:56 on ttys000 > roberto-henriquess-macbook-2:~ thom$ psql > psql (9.6.3) > Type "help" for help. > thom=# createdb mydb > thom-# mydb > thom-# > The prompt remains in my user name. "createdb" is a shell command; you'd issue that to your shell not to psql. The equivalent thing to do in psql would be create database mydb; (don't forget the semicolon). Also, once you'd created it, the way to switch to it within a psql session would be \c mydb While we're here, notice the subtle changes in psql's command prompt --- that indicates that it thinks you're continuing a multiline command. That's why nothing seems to be happening. If you'd typed a semicolon to end the command, you'd have gotten a syntax error of one sort or another. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs