Overview
Supabase is a hosted PostgreSQL service. Connecting your Supabase database to Pylar allows you to query and analyze your Supabase data directly from Pylar, just like any PostgreSQL database.Prerequisites
- ✅ Pylar account with Analyst role or higher
- ✅ Supabase account with an active project
- ✅ Database password (Supabase does not provide this in connection details)
Step 1: Log into Supabase
- Log into your Supabase account
- Open the project you want to connect to Pylar
Step 2: Get Connection Details
- At the top of your Supabase project, click the “Connect” button
- You’ll see connection options:
- Direct Connection (for direct access)
- Transaction Pooler (for pooled connections)
- Ignore the URI—instead, click “View Parameters” to reveal the necessary connection details
Supabase provides connection parameters rather than a single URI. You’ll need to copy these individual parameters.
Step 3: Copy Connection Parameters
From the “View Parameters” view, copy the following details:- Host: The Supabase database host
- Port: The database port (usually 5432)
- Database Name: The database name
- User: The database user
Step 4: Configure Pylar Connection
- Open Pylar’s Connections page
- Select PostgreSQL as the database type (since Supabase is PostgreSQL-based)
- Enter the connection details:
Host
Paste the Host parameter from Supabase.Port
Enter the Port parameter (usually5432).
Database Name
Enter the Database Name from Supabase.Username
Enter the User parameter from Supabase.Password
Manually enter your Supabase database password.Since Supabase doesn’t provide the password in connection details, you must enter it manually. This is the password you set when creating your Supabase project or the one you’ve configured.
Step 5: Whitelist Pylar IP Address
Critical Step: Whitelist Pylar’s IP address in Supabase. Pylar IP Address:34.122.205.142
How to whitelist in Supabase:
- In Supabase, go to Project Settings → Database
- Scroll to Connection Pooling or Network Restrictions
- Add
34.122.205.142to the allowed IP addresses - Or configure your Supabase project’s network access settings
Step 6: Test and Connect
- Click “Connect” or “Submit” in Pylar
- Pylar will test the connection to your Supabase database
- If successful, the connection will be established
Step 7: Wait for Data Sync
After connecting:- Data will begin syncing automatically
- You don’t need to wait—Pylar will notify you via email once the data is available for querying
- The sync process may take some time depending on data volume
You’ll receive an email notification when your Supabase data is ready to query. You can continue working while the sync happens in the background.
Using Your Supabase Connection
Once synced, you can query Supabase data just like any PostgreSQL database:Connection Type Options
Direct Connection
- Use when: You want direct database access
- Best for: Production workloads
- Note: May have connection limits
Transaction Pooler
- Use when: You want pooled connections
- Best for: High-concurrency scenarios
- Note: Uses a different port (usually 6543)
Troubleshooting
Issue: Connection test fails
Solutions:- Verify all parameters are copied correctly from Supabase
- Check database password is correct
- Ensure IP address
34.122.205.142is whitelisted - Verify Supabase project is active
Issue: “Authentication failed” error
Solutions:- Double-check database password
- Verify username matches Supabase user
- Check if password was reset recently
- Review Supabase user permissions
Issue: “Connection refused” error
Solutions:- Verify IP address is whitelisted in Supabase
- Check network restrictions in Supabase settings
- Ensure project is not paused
- Review Supabase project status
Best Practices
Password Security
- ✅ Use a strong database password
- ✅ Store password securely (password manager)
- ✅ Never share password publicly
- ✅ Rotate password periodically
Connection Naming
- ✅ Use descriptive names:
supabase_prod,supabase_staging - ✅ Include environment information
- ✅ Be consistent across your workspace
Next Steps
Now that Supabase is connected:- Creating Data Views - Create views using Supabase data
- Cross-Database Joins - Join Supabase with other sources
- Connection Security - Secure your connections
Create Views
Use your Supabase connection to create data views