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

# Bare Metal Deployment

> Serverless Analytics on Postgres.

<Steps>
  <Step title="Install the extension manager" icon="robot" iconType="solid" stepNumber="1" />

  <Step title="Install the Hydra package" icon="box-taped" iconType="duotone" stepNumber="2" />

  <Step title="Add Config and settings" icon="file-circle-plus" iconType="duotone" stepNumber="3" />

  <Step title="Restart Postgres & create extension" icon="check" iconType="duotone" stepNumber="4" />
</Steps>

<iframe width="560" height="315" src="https://www.youtube.com/embed/2wq2aXOFkQQ?si=QDk1-Rz1a-cREWun" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen />

### Step 1: Install the postgres extension manager "pgxman"

[pgxman](https://docs.hydra.so/operate/extensions#how-it-works) simplifies deployment and automatically manages correct Hydra versions, build & run dependencies, operating system, and platform architecture.

**Curl:** `curl -sfL https://install.pgx.sh | sh -`

**Homebrew:** `brew install pgxman/tap/pgxman`

### Step 2: Install Hydra package:

`pgxman install hydra_pg_duckdb`

### Step 3: Add Config file and settings at:

`/etc/postgresql/{version}/main/postgresql.conf`

In settings add:

```sql theme={null}
shared_preload_libraries = 'pg_duckdb'
duckdb.hydra_token = 'paste token from http://platform.hydra.so/get-started'
```

Visit [http://platform.hydra.so/token](http://platform.hydra.so/get-started) to fetch the access token and paste it into the section above.

### <img src="https://mintcdn.com/pgxman/qsYyo-rksckbkjwh/images/Group2082(3).png?fit=max&auto=format&n=qsYyo-rksckbkjwh&q=85&s=6b2741c954f1aa785f7e0eb2a5ae3622" alt="Group2082(3) Pn" width="650" height="387" data-path="images/Group2082(3).png" />

Step 4: Restart Postgres & create extension

**restart**

`sudo service postgresql restart`

**create extension**

`create extension pg_duckdb`

Installation is now complete!

Next, check out the [Quick Start](/intro/quickstart) guide to try serverless analytics on Postgres.

## Additional Resources

We recommend checking out:

* the migration documentation from [Object Storage](/migration/data_lake) (S3, GCS), Amazon [RDS](/migration/rds), [Heroku](/migration/heroku), [Render](/migration/render), [Postgres](/migration/postgres).
* [about Hydra](/hydra/about), our team and partners behind the project
* the Hydra [architecture](/start/architecture)
