# Nais 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!
-->

> **Experimental feature**
> This feature is an alpha feature, and is subject to API change, instability or removal.
> See the [main Postgres page](/persistence/postgresql.md) for more information.

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/postgresql/reference/spec.md).

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