# Postgres example YAML

<!--
  This documentation was automatically generated by https://github.com/nais/pgrator/actions
  
  DO NOT MAKE MANUAL CHANGES TO THIS FILE, THEY WILL BE OVERWRITTEN!
-->

> **Preview**
> Postgres is in preview. Use it with care; the API and supported workflows may change.
> See the [Postgres overview](/persistence/postgres.md) for current availability.

This is a complete example of a `Postgres` resource, commonly known as the `postgres.yaml` file.

For an in-depth explanation of each field, head over to the [reference documentation](/persistence/postgres/reference/spec.md).

```yaml
version: v1
type: Postgres
name: mypostgres
spec:
  activeBranch: main
  extensions:
    - name: vector
  highAvailability: true
  majorVersion: "18"
  resources:
    cpu: 100m
    diskSize: 10Gi
    memory: 512Mi
```
