# Postgres

{% hint style="info" %}
The Postgres integration is included on paid [Shadow Fork plans](https://www.shadow.xyz/pricing).
{% endhint %}

The Postgres integration is available for [Database Syncs](/getting-data/database-syncs.md). It's ideal for teams who need real-time, reorg-aware, data for indexing or analytics.

With data streamed directly into your Postgres instance, you can build REST or GraphQL APIs tailored to your specific use cases. This eliminates the overhead required of managing real-time data pipelines, allowing you to focus on core application development.

To set up a database sync, you’ll need to provide:

* Host address
* Database name
* Username
* Password

You’ll also be prompted to choose which contracts and decoded events to stream into your Postgres instance.

<figure><img src="/files/MgQl5wpiKMs89FYSSbf3" alt=""><figcaption></figcaption></figure>

See the [Database Syncs](/getting-data/database-syncs.md) page for additional information.<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shadow.xyz/integrations/postgres.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
