agora inbox for pgsql-docs@postgresql.org  
help / color / mirror / Atom feed
Creating Database Querry in psql CLI
3+ messages / 3 participants
[nested] [flat]

* Creating Database Querry in psql CLI
@ 2025-07-16 03:57 PG Doc comments form <noreply@postgresql.org>
  2025-07-17 12:25 ` Re: Creating Database Querry in psql CLI Laurenz Albe <laurenz.albe@cybertec.at>
  2025-07-17 13:14 ` Re: Creating Database Querry in psql CLI David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: PG Doc comments form @ 2025-07-16 03:57 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: msd.sheraz046@gmail.com

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/tutorial-createdb.html
Description:

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


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Creating Database Querry in psql CLI
  2025-07-16 03:57 Creating Database Querry in psql CLI PG Doc comments form <noreply@postgresql.org>
@ 2025-07-17 12:25 ` Laurenz Albe <laurenz.albe@cybertec.at>
  1 sibling, 0 replies; 3+ messages in thread

From: Laurenz Albe @ 2025-07-17 12:25 UTC (permalink / raw)
  To: msd.sheraz046@gmail.com; pgsql-docs@lists.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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Creating Database Querry in psql CLI
  2025-07-16 03:57 Creating Database Querry in psql CLI PG Doc comments form <noreply@postgresql.org>
@ 2025-07-17 13:14 ` David G. Johnston <david.g.johnston@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: David G. Johnston @ 2025-07-17 13:14 UTC (permalink / raw)
  To: msd.sheraz046@gmail.com <msd.sheraz046@gmail.com>; pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>

On Tuesday, July 15, 2025, PG Doc comments form <noreply@postgresql.org>
wrote:

> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/17/tutorial-createdb.html
> Description:
>
> 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
>

As noted here that $ means you need to be at the OS shell to execute
createdb.

https://www.postgresql.org/docs/17/notation.html

David J.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2025-07-17 13:14 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-07-16 03:57 Creating Database Querry in psql CLI PG Doc comments form <noreply@postgresql.org>
2025-07-17 12:25 ` Laurenz Albe <laurenz.albe@cybertec.at>
2025-07-17 13:14 ` David G. Johnston <david.g.johnston@gmail.com>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox