---
title: "Postgres Database Setup"
space: "Framework"
url: "https://docs.frappe.io/framework/user/en/guides/database-settings/postgres-database-setup"
updated: "2026-05-10"
---

Use following command to use Postgres as database for your new site.

`bench new-site &lt;site-name&gt; --db-type postgres`

**Note:** Make sure you have Postgres version 9 or greater installed in your system.

