0

I am following this tutorial for creating a user in postgresql.

It lists some commands to run, but does not say within what context to run them. I tried running the command psql,which takes me to a prompt like the following...

postgres=# 

Then when I enter the commands shown in the tutorial there, absolutely nothing happens at all. What am I missing here?Also, why does the postgress official documentation guide have such gigantic gaping holes in the information it provides?

2
  • 1
    Don't forget a semicolon at the end of each SQL command. Commented Mar 12, 2017 at 23:06
  • @user2182349 — They haven't written any SQL commands. Commented Mar 12, 2017 at 23:13

1 Answer 1

1

You appear to have skipped past the part of the documentation that describes the conventions it uses:

SQL commands are preceded by the prompt =>, and shell commands are preceded by the prompt $.

The page you link to says:

$ createdb mydb

So you should run it at the shell prompt and not the postgres prompt. i.e. Don't run the command psql first.

It doesn't tell you to run psql until the next page.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.