Skip to content

Commit bb0e145

Browse files
createdb: add page (#7851)
1 parent cbfe325 commit bb0e145

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pages/common/createdb.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# createdb
2+
3+
> Create a PostgreSQL database.
4+
> More information: <https://www.postgresql.org/docs/current/app-createdb.html>.
5+
6+
- Create a database owned by the current user:
7+
8+
`createdb {{database_name}}`
9+
10+
- Create a database owned by a specific user with a description:
11+
12+
`createdb --owner={{username}} {{database_name}} '{{description}}'`
13+
14+
- Create a database from a template:
15+
16+
`createdb --template={{template_name}} {{database_name}}`

0 commit comments

Comments
 (0)