nex-postgres-multi-instance
by Nex AI
Manage multiple Postgres versions and extensions on one Linux box with a port registry and unified backups.
- Run pgvector and TimescaleDB side-by-side on a single Raspberry Pi or VPS.
- Fix 'Peer authentication failed' errors by generating correct pg_hba configs.
- Avoid port collisions with a managed registry for all local database instances.
$29
· or 145 creditsSecure checkout via Stripe
Included in download
- Run pgvector and TimescaleDB side-by-side on a single Raspberry Pi or VPS.
- Fix 'Peer authentication failed' errors by generating correct pg_hba configs.
- terminal automation included
- Ready for Cursor
Sample input
I need to add a pgvector instance for a new project called 'brain-search' on my Ubuntu box. Port 5432 is already taken by my main app.
Sample output
I've generated the postgres-multi/ package. I've assigned 'brain-search' to port 5433 (the next free port in your registry) using the docker-pgvector template.
Registry Entry added: 5433 | brain-search-db | brain-search | pgvector pg16 | docker | 2024-05-20
Run this to start: docker compose -f postgres-multi/docker-instances/docker-compose-brain-search.yml up -d
nex-postgres-multi-instance
by Nex AI
Manage multiple Postgres versions and extensions on one Linux box with a port registry and unified backups.
$29
· or 145 creditsSecure checkout via Stripe
Included in download
- Run pgvector and TimescaleDB side-by-side on a single Raspberry Pi or VPS.
- Fix 'Peer authentication failed' errors by generating correct pg_hba configs.
- terminal automation included
- Ready for Cursor
- Instant install
Sample input
I need to add a pgvector instance for a new project called 'brain-search' on my Ubuntu box. Port 5432 is already taken by my main app.
Sample output
I've generated the postgres-multi/ package. I've assigned 'brain-search' to port 5433 (the next free port in your registry) using the docker-pgvector template.
Registry Entry added: 5433 | brain-search-db | brain-search | pgvector pg16 | docker | 2024-05-20
Run this to start: docker compose -f postgres-multi/docker-instances/docker-compose-brain-search.yml up -d
About This Skill
Run Multiple Postgres Instances Peacefully
Running multiple databases on a single Linux machine often leads to port collisions, authentication headaches ("Peer authentication failed"), and backup gaps. This skill implements a battle-tested operational pattern for developers who need to host multiple isolated Postgres environments—such as pgvector, TimescaleDB, and vanilla Postgres—side-by-side without version conflicts or high managed-database bills.
What it does
The skill generates a hard-coded infrastructure folder (postgres-multi/) containing everything needed to manage your database fleet:
- Port Registry: A canonical mapping to prevent port collisions between services.
- Multi-Instance Configs: Templates for both Debian-managed clusters and Docker containers (pgvector, TimescaleDB, vanilla).
- Hardened Security: Automatic 127.0.0.1 binding and SCRAM-SHA-256 authentication setup to prevent credential-spraying.
- Unified Backups: A central shell script that iterates through your registry to perform gzipped nightly dumps with auto-pruning.
- Fix Scripts: One-shot utilities to resolve common "peer authentication" issues and check port availability.
Why use this skill?
Unlike a generic AI prompt, this skill enforces strict operational standards: it ensures every volume is app-prefixed to prevent accidental data deletion, insists on non-root app roles, and provides a documented upgrade path for when the next Postgres major version ships. It transforms a messy "db-on-a-box" setup into a professional, registry-backed database platform.
Use Cases
- Run pgvector and TimescaleDB side-by-side on a single Raspberry Pi or VPS.
- Fix 'Peer authentication failed' errors by generating correct pg_hba configs.
- Avoid port collisions with a managed registry for all local database instances.
- Automate nightly gzipped backups for every Postgres instance on the host.
- Isolate app data using named Docker volumes and local-only network bindings.
Known Limitations
- Local storage only: does not include off-site or S3 syncing. - Single-node focus: not for clusters like Patroni. - Linux-specific: relies on Debian/Ubuntu systemd and Docker setup.
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/nex-postgres-multi-instance -o /tmp/nex-postgres-multi-instance.zip && unzip -o /tmp/nex-postgres-multi-instance.zip -d ~/.claude/skills && rm /tmp/nex-postgres-multi-instance.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Early access skill
Be the first to review this skill.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
Allowed Hosts
File Scopes
Compatible with SKILL.md-compatible agents including Claude Code, Cursor, and Aider.
Creator
Founder of Nex AI. I build production-grade Claude Skills from systems that actually run: multi-tenant SaaS, Telegram agents, Raspberry Pi infrastructure, 3D multiplayer rooms. Every skill ships battle-tested patterns, not theory. 33+ open source skills published, commercial catalog growing.
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills
Multi-Agent Orchestration Master Library
Transform Claude Code into a coordinated multi-agent system. Battle-tested tmux orchestration patterns, YAML task queues, event-driven communication, and parallel worker management for 8+ agents.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.
consumer-motivation-analyzer
Go beyond surface-level feedback to uncover the psychological drivers and hidden motivations behind buyer behavior.
Bounty Security Pattern Master Library — 399 Vulnerability Patterns
A premium library of 399 vulnerability patterns and DeFi attack vectors for AI-driven bug hunting and security audits.