From: Laurenz Albe <laurenz.albe@cybertec.at>
To: msd.sheraz046@gmail.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: Creating Database Querry in psql CLI
Date: Thu, 17 Jul 2025 14:25:58 +0200
Message-ID: <9e97b8930ada53c02a538a08db369ab956a5548e.camel@cybertec.at> (raw)
In-Reply-To: <175263827957.858621.656351321405492725@wrigleys.postgresql.org>
References: <175263827957.858621.656351321405492725@wrigleys.postgresql.org>
On Wed, 2025-07-16 at 03:57 +0000, PG Doc comments form wrote:
> Page: https://www.postgresql.org/docs/17/tutorial-createdb.html
>
> The querry to create database you mentioned in this document (createdb
> db_name) is not working in my Debian OS , rather create database db_name;
> is working
I *guess* (since you say "querry") that you are already on the "psql"
prompt when you enter "createdb db_name", which won't work, since that
is a shell command. The $ at the beginning of the line should give
you that clue.
That would also explain why "create database db_name;" works for you,
because that is an SQL statement.
Yours,
Laurenz Albe
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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: laurenz.albe@cybertec.at, msd.sheraz046@gmail.com, pgsql-docs@lists.postgresql.org
Subject: Re: Creating Database Querry in psql CLI
In-Reply-To: <9e97b8930ada53c02a538a08db369ab956a5548e.camel@cybertec.at>
* 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