> ## Documentation Index
> Fetch the complete documentation index at: https://docs.isotopes.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Postgres Connector 

The Postgres connector lets aidnn pull data directly from your PostgreSQL database for analysis. Setup runs entirely in aidnn.

## 1. Add the Postgres connector in aidnn

### Open the Connectors page

From the aidnn home screen, click **Connectors** in the left sidebar.

### Start a new connector

Click **Add New Connector** in the top-right corner. You’ll see a grid of every available connector grouped by category.

### Pick Postgres

Under **Databases**, select **Postgres**. This opens the **Add New Postgres Service** page.

<Frame>
  <img src="https://mintcdn.com/isotopesai-e9db0a5b/wpilY_PcIKemRybe/images/SCR-20260429-nobr.png?fit=max&auto=format&n=wpilY_PcIKemRybe&q=85&s=0a1fbbf04f7dd9e97ccca6b56e5c677a" alt="SCR 20260429 Nobr" width="2660" height="1204" data-path="images/SCR-20260429-nobr.png" />
</Frame>

### 2. Fill in the connector details

The Add New Postgres Service form has two parts: identification (name, description, visibility) and connection details (host, port, credentials, database).

### Allowlist aidnn’s IPs first

At the top of the form, aidnn lists the outbound IP addresses its connectors use. Add these to your database’s network ACL or firewall rules before you go any further — the test connection step won’t pass without them.

<Frame>
  <img src="https://mintcdn.com/isotopesai-e9db0a5b/wpilY_PcIKemRybe/images/SCR-20260429-nozh.png?fit=max&auto=format&n=wpilY_PcIKemRybe&q=85&s=9c66ae7181ca2007035fa8e393f32a76" alt="SCR 20260429 Nozh" width="1800" height="1296" data-path="images/SCR-20260429-nozh.png" />
</Frame>

### Name the service

* **Name** - a clear name (for example, "Postgres Connector" or "Prod Postgres – Analytics").
* **Description** - optional, useful when you connect multiple Postgres databases.
* **Visibility** - Public (everyone in your org can use it) or Private (only you).

### Enter connection details

Scroll down and fill in the standard PostgreSQL connection fields:

* **SslMode** - typically Allow or Require, depending on how your database accepts TLS.
* **Database** - the database name (for example, neondb)
* **Host** - the database hostname or endpoint.
* **Password** - the password for the user below.
* **Port** - the database port (Postgres defaults to 5432).
* **User** - the database user aidnn should connect as. Read access is enough.

<Frame>
  <img src="https://mintcdn.com/isotopesai-e9db0a5b/wpilY_PcIKemRybe/images/SCR-20260429-npwu.png?fit=max&auto=format&n=wpilY_PcIKemRybe&q=85&s=c66c58f548d313f235b8a36b22fb44c7" alt="SCR 20260429 Npwu" width="1790" height="1320" data-path="images/SCR-20260429-npwu.png" />
</Frame>

## 3. Test the connection

Click **Test Connection**. aidnn runs three checks: it confirms it can reach the database (Check Access), lists the databases it can see, and lists the schemas inside the database you specified. If everything passes, you'll see a *Connection test successful!* confirmation.

<Frame>
  <img src="https://mintcdn.com/isotopesai-e9db0a5b/wpilY_PcIKemRybe/images/SCR-20260429-nrjz.png?fit=max&auto=format&n=wpilY_PcIKemRybe&q=85&s=369fedd94b39203d02b23c2980b2ba1f" alt="SCR 20260429 Nrjz" width="1396" height="996" data-path="images/SCR-20260429-nrjz.png" />
</Frame>

### Create the connector

Once the test passes, click **Create** at the bottom of the form. aidnn saves the connector and takes you to its detail page.

## 4. Sync metadata

A new Postgres connector starts with no synced data the Sync History on the detail page is empty. Syncing tells aidnn which schemas to pull metadata from so notebooks can query them.

<Frame>
  <img src="https://mintcdn.com/isotopesai-e9db0a5b/wpilY_PcIKemRybe/images/SCR-20260429-nsdy.png?fit=max&auto=format&n=wpilY_PcIKemRybe&q=85&s=d92a7e4e863a0a6700eb2e3c2ec74e47" alt="SCR 20260429 Nsdy" width="2376" height="1378" data-path="images/SCR-20260429-nsdy.png" />
</Frame>

### Step 1 -  Click Sync now

Click **Sync now** in the top-right of the detail page.

### Step 2 -  Pick the schemas to sync

A **Sync Metadata** modal lists the databases and schemas aidnn discovered. Check the schemas you want to make available (you can pick all or just a subset, for example only *public* and *sample\_ecommerce*), then click **Sync now**.

<Frame>
  <img src="https://mintcdn.com/isotopesai-e9db0a5b/wpilY_PcIKemRybe/images/SCR-20260429-nszr.png?fit=max&auto=format&n=wpilY_PcIKemRybe&q=85&s=594c4079365b17aa247c6b4686f2b901" alt="SCR 20260429 Nszr" width="1396" height="744" data-path="images/SCR-20260429-nszr.png" />
</Frame>

### Step 3 - The sync run

The Sync History row shows the run start and a Processing badge while metadata is being pulled in.

<Frame>
  <img src="https://mintcdn.com/isotopesai-e9db0a5b/wpilY_PcIKemRybe/images/SCR-20260429-ntnn.png?fit=max&auto=format&n=wpilY_PcIKemRybe&q=85&s=0a8ec4bd4f77dcf6dfa9c1810668c413" alt="SCR 20260429 Ntnn" width="2304" height="482" data-path="images/SCR-20260429-ntnn.png" />
</Frame>

When it finishes, the badge flips to Completed and the duration is filled in.

<Frame>
  <img src="https://mintcdn.com/isotopesai-e9db0a5b/wpilY_PcIKemRybe/images/SCR-20260429-nudx.png?fit=max&auto=format&n=wpilY_PcIKemRybe&q=85&s=62b530fb17f2d28b1b0a453af6182fe5" alt="SCR 20260429 Nudx" width="2370" height="534" data-path="images/SCR-20260429-nudx.png" />
</Frame>

## 5. You're done

The Postgres connector is now active and synced. It appears under **Databases** on the Connectors page with the latest sync time. Notebooks can now query the synced schemas the same way they would any other connected source.

<Frame>
  <img src="https://mintcdn.com/isotopesai-e9db0a5b/wpilY_PcIKemRybe/images/SCR-20260429-nuic.png?fit=max&auto=format&n=wpilY_PcIKemRybe&q=85&s=2fa7a870f26bad5f16662735e2ff1e59" alt="SCR 20260429 Nuic" width="1860" height="866" data-path="images/SCR-20260429-nuic.png" />
</Frame>
