From: Tom Lane <tgl@sss.pgh.pa.us>
To: rthomques@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14727: Inicial running of Postgres.
Date: Sun, 02 Jul 2017 15:39:31 -0400
Message-ID: <26900.1499024371@sss.pgh.pa.us> (raw)
In-Reply-To: <20170702184708.1477.72000@wrigleys.postgresql.org>
References: <20170702184708.1477.72000@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
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: tgl@sss.pgh.pa.us, rthomques@gmail.com
Subject: Re: BUG #14727: Inicial running of Postgres.
In-Reply-To: <26900.1499024371@sss.pgh.pa.us>
References: <20170702184708.1477.72000@wrigleys.postgresql.org> <26900.1499024371@sss.pgh.pa.us>
* 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