ChatGPT can now connect to Stashi over remote MCP Setup guide ›
Stashi
Engineering services

Postgres fixes at a fixed price.

Slow queries, connection storms, Row-Level Security, server setup. From $25, done in 1 to 2 business days.

Engine
PostgreSQL 17
Pooling
PgBouncer, transaction mode
Turnaround
1 to 2 business days
Pricing
Fixed, paid once upfront
Services

Four services. Price, turnaround and files on each card.

Performance & Optimization

Performance audit

We run your slow queries through EXPLAIN ANALYZE and send back the indexes that fix them.

$25one-time 1 business day

You receive

  • A report naming each slow query and why it's slow
  • CREATE INDEX scripts, with before and after timings
  • Which tables to partition as they grow, and where to split them
Scope and what we need

Scope

  • Query execution plan inspection using EXPLAIN (ANALYZE, BUFFERS)
  • Identification of sequential table scan bottlenecks and missing foreign key covering indexes
  • Definition of composite B-tree, partial, and expression-based indexing strategies
  • Storage alignment audit to prevent row fragmentation and write amplification

What we need from you

  • Target table schemas (DDL) or entity relationship definitions
  • Representative read/write query patterns or slow query log excerpts
Buy for $25
Concurrency & Scaling

Connection pooling setup

A PgBouncer config sized for your traffic, so bursts stop running Postgres out of connections.

$50one-time 1 business day

You receive

  • pgbouncer.ini sized to your app's concurrency
  • userlist template with SCRAM-SHA-256 auth
  • Pool sizes worked out against your server's memory
Scope and what we need

Scope

  • Evaluation of max client connections versus max server connection ratios
  • Tuning of pool_mode = transaction, default_pool_size, and reserve_pool_size
  • Configuration of prepared statement workarounds for transaction pooling
  • Timeout calibration for server_idle_timeout and query_wait_timeout

What we need from you

  • Target concurrency count and connection lifecycle characteristics
  • PostgreSQL engine version and server memory specification
Buy for $50
Schema & Security Architecture

Schema and Row-Level Security

A Postgres 17 schema with migrations, and RLS policies that keep each tenant's rows to themselves.

$95one-time 2 business days

You receive

  • Schema DDL with keys and constraints
  • Migrations you can re-run safely, each in a transaction
  • RLS policies scoped per tenant
  • Tables for sessions and OAuth accounts
Scope and what we need

Scope

  • Relational schema modeling normalized to Boyce-Codd Normal Form
  • Session token, OAuth account, and refresh token schemas with expiry indexes
  • PostgreSQL ALTER TABLE ENABLE ROW LEVEL SECURITY with tenant role grants
  • Automated migration runner script supporting forward apply and rollback

What we need from you

  • Functional entity requirements or API endpoint specifications
  • Authentication provider selection and multi-tenancy requirements
Buy for $95
Dedicated Infrastructure

Dedicated server setup

Postgres 17 on your own Ubuntu server, with PgBouncer, TLS, a firewall and WAL backups.

$180one-time 2 business days

You receive

  • A record of the server and how its resources are allocated
  • postgresql.conf tuned to the server's RAM and disk
  • pgbouncer.ini sized to your app
  • A WAL backup script that keeps and checks 7 days
  • Credentials and the TLS CA bundle
Scope and what we need

Scope

  • Installation and systemd service configuration of PostgreSQL 17 on Ubuntu 24.04 LTS
  • TLS certificate enforcement with let-encrypt or private authority
  • PgBouncer transaction-mode connection pool tuning on port 6432
  • UFW firewall configuration restricting ingress to application subnets
  • Continuous WAL archival configuration with point-in-time recovery testing

What we need from you

  • Linux VPS host access credentials or assigned IP address
  • Application server egress CIDR block for firewall authorization
Buy for $180

Not on the list?

Sharding, replication, moving off another database. Describe it and get a scope and quote within one business day. Free.

How it works

Pay, send context, get the files. All in one workspace.

Pay. Price and turnaround are on the card. No sales call.

Send context. Your workspace opens after payment. Drop schemas and slow queries there.

Get the files. Scripts, configs and a report land in the same workspace.