Createdb does not create db in postgres: no error message

When I try to create db in postgres 9.3, it does not create the database. I do not receive error messages.

abramhandler-# createdb orleansgis
abramhandler-# \list
                                         List of databases
     Name     |    Owner     | Encoding |   Collate   |    Ctype    |       Access privileges       
--------------+--------------+----------+-------------+-------------+-------------------------------
 abramhandler | abramhandler | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 postgres     | abramhandler | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 template0    | abramhandler | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/abramhandler              +
              |              |          |             |             | abramhandler=CTc/abramhandler
 template1    | abramhandler | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/abramhandler              +
              |              |          |             |             | abramhandler=CTc/abramhandler
(4 rows)

abramhandler-# 

I tried to log in #commitand it still does not show the database.

docs shows how to debug error messages, but I'm not sure what to do when I don't get the error message at all. It just does not create a database.

+4
source share
1 answer

createdb- shell command line command. At psql command line use commandcreate database

When prompted -#, it is still waiting for the completion of the command, a semicolon. Enter Ctrl Cto avoid this.

+9
source

Source: https://habr.com/ru/post/1533534/


All Articles