---
name: "cdist-type__postgres_database"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__postgres_database"
---

# cdist-type\_\_postgres\_database(7)

Create/drop postgres databases

## NAME

cdist-type\_\_postgres\_database - Create/drop postgres databases

## DESCRIPTION

This cdist type allows you to create or drop postgres databases.

## OPTIONAL PARAMETERS

- **state**

  Either 'present' or 'absent', defaults to 'present'.

- **owner**

  Specifies the database user who will own the new database.

- **encoding**

  Specifies the character encoding scheme to be used in this database.

- **lc-collate**

  Specifies the LC\_COLLATE setting to be used in this database.

- **lc-ctype**

  Specifies the LC\_CTYPE setting to be used in this database.

- **template**

  Specifies the template database from which to build this database.

## EXAMPLES

```
__postgres_database mydbname --owner mydbusername
```

## SEE ALSO

[**cdist-type\_\_postgres\_role**(7)](/cdist-type__postgres_role/7.md)

## AUTHORS

Steven Armstrong \<*steven-cdist--@--armstrong.cc*\>

## COPYING

Copyright (C) 2011 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

## COPYRIGHT

ungleich GmbH 2021
