ZWIEGNET Linux Consultants

PostgreSQL Consulting

Expert Administration & Optimization for PostgreSQL

Professional PostgreSQL consulting — from architecture design and performance tuning to high availability, replication, extensions, and ongoing support.

Get PostgreSQL Help

Our PostgreSQL Consulting Services

Zwiegnet delivers deep PostgreSQL expertise for organizations running or planning to run the world's most advanced open-source database. We support all modern versions (including PostgreSQL 17) on Linux platforms, helping you maximize reliability, performance, and feature utilization.

Our PostgreSQL services include:

  • Architecture & Design – Database schema design, partitioning strategies, JSONB/NoSQL usage, and extension selection (PostGIS, pg_trgm, timescaledb, etc.).
  • Installation & Configuration – Secure deployments, parameter tuning, connection pooling (pgbouncer, Odyssey), and OS-level optimization.
  • Performance Tuning – Query optimization, index strategy, EXPLAIN analysis, vacuum/autovacuum tuning, and workload management.
  • High Availability & Replication – Streaming replication, logical replication, Patroni, repmgr, pglogical, and multi-master setups.
  • Backup & Recovery – pg_dump, WAL archiving, point-in-time recovery (PITR), pg_backrest, and Barman configuration.
  • Security & Compliance – Row-level security, column encryption, SSL/TLS, auditing, SCRAM authentication, and compliance support.
  • Monitoring & Alerting – Integration with Prometheus/pg_exporter, Check_Postgres, or custom monitoring solutions.
  • Upgrades & Maintenance – Major version upgrades (pg_upgrade, logical replication), extension management, and patch application.
  • Migration Assistance – Support for moving from Oracle, MySQL, SQL Server, or other databases to PostgreSQL.
  • Troubleshooting & Break-Fix – Rapid diagnosis of corruption, deadlock, replication lag, and performance issues.

Perfect for web applications, analytics platforms, GIS systems, time-series data, or any workload demanding robust, feature-rich relational storage.

Located between Madison and Milwaukee, Wisconsin since 2009 — direct access to experienced PostgreSQL specialists with real-world production expertise.

Inquire About PostgreSQL Consulting

Connections, WAL, and a backup you have restored

max_connections is a ceiling, not a tuning target. Each connection is a process and a slice of memory. An application that opens one connection per request will hit that ceiling and then fail with "too many clients" while the CPUs sit idle. The fix is a pooler. PgBouncer in transaction mode is the usual one, and it breaks session state: prepared statements, SET, and advisory locks held across transactions do not survive the next checkout.

shared_buffers is the database's own cache. A quarter of RAM is a starting point on a host that does nothing else, not a rule. work_mem is per sort, per query, and a reporting query with many sorts will use several of them at once. wal_level = replica is what streaming replication and pg_basebackup need. A base backup without the WAL that follows it will not reach consistency.

Autovacuum is not optional on a table that takes updates. A table that bloats until queries slow down is a table whose dead tuples were not frozen and removed, often because autovacuum lost the race with a long transaction. pg_stat_activity shows that transaction. The move from MySQL is that migration, and the move from Oracle is that one. Running the MySQL you still have is the MySQL and MariaDB page.

Questions

Why do new connections fail while the server looks idle?

max_connections is exhausted by idle sessions the application never closed. Look at pg_stat_activity. Put a pooler in front, and fix the application leak. Raising the ceiling without a pool just spends more RAM on idle backends.

Replication stopped and the primary disk filled. What held the WAL?

A replication slot for a replica that is gone still reserves WAL. pg_replication_slots shows it. Drop the slot only when you know that replica is not coming back, or the primary will keep every segment.