# Postgres 16 Core

**PostgreSQL 16** is completely **free and open-source**, including its core features. PostgreSQL is released under the **PostgreSQL License**, which is a permissive open-source license similar to BSD, allowing free use, modification, and distribution without licensing fees.

You can download and use **PostgreSQL 16** for any purpose, including **commercial use**, without restrictions. However, some **managed services** (e.g., AWS RDS for PostgreSQL) may charge for hosting and management.

We will be installing and setting up the postgre SQL database to integrate it with the deep security solution as our central logging and storage needs.

```bash
sudo -u postgres psql
# DATABASE CREATION
CREATE DATABASE DSM;
# CREATING USER
CREATE USER deepsecuser WITH PASSWORD 'StrongPassword';
# Granting Privileges
GRANT ALL PRIVILEGES ON DATABASE DSM TO deepsecuser;
# Ownership transfer for DSM database
ALTER DATABASE DSM OWNER TO deepsecuser;
\q
```

Now we can use this database server for our deep security solutions. We will now start the deep security manager installation in the upcoming sections.
