OffNet Newsroom

Daily topic roundup

Database Technology

Monday, September 28, 2026 · 8 stories, curated & summarized — click any story for the source.

PostgreSQL 19 introduces native REPACK (CONCURRENTLY), eliminating the need for extensions like pg_repack to perform online table rewrites. The author benchmarks this new built-in feature against pg_repack and pg_squeeze to quantify its resource consumption. Tests were conducted on PostgreSQL 19beta4 using dedicated hardware to measure the actual impact on a running database.

  • PostgreSQL 19 adds native REPACK (CONCURRENTLY) as a built-in command with no extension requirements.
  • This feature brings online repacking capabilities to managed services that previously blocked shared preload libraries.
  • The article benchmarks resource costs of the new native command against pg_repack and pg_squeeze.
  • Performance data is derived from tests on PostgreSQL 19beta4 using Hetzner and Google Cloud hardware.

Christophe Pettus clarifies that the new max_sync_workers_per_subscription setting governs parallelism across multiple tables during logical replication sync, rather than within a single table. This distinction means the setting limits the total concurrent replication workers allocated to a specific subscription. It does not enable intra-table parallel copy, which remains a separate concern in the replication engine.

  • GUC limits parallelism across tables, not within individual table copies.
  • Setting applies per subscription to control total concurrent sync workers.
  • Prevents resource exhaustion during initial logical replication table syncs.
  • Intra-table parallel copy is not affected by this specific GUC.

Chris van Eijk benchmarks five index configurations across 1,000 tenants in PostgreSQL 17 to determine optimal column ordering for multi-tenant workloads. The analysis reveals that placing tenant_id as the leading column is critical for query performance, particularly when Row Level Security (RLS) alters execution plans. The study also evaluates when table partitioning provides sufficient payoff to justify its complexity.

  • Leading with tenant_id ensures efficient index scans for per-tenant queries in multi-tenant schemas.
  • RLS can significantly change query plans; verify execution paths after enabling security policies.
  • Partitioning only pays off at scale; measure overhead before adopting for small tenant counts.
  • PostgreSQL 17 optimizations were tested, but column order principles remain consistent across versions.
TRADE-OFFIndex Strategy vs RLSTenant ID FirstEnsures efficient index scansOptimizes per-tenant queriesConsistent across versionsRLS ImpactAlters execution plansRequires verificationChanges query pathsvs

Chris van Eijk benchmarks five strategies for generating gapless, unique invoice numbers per tenant in PostgreSQL 17, including sequences, max()+1, SERIALIZABLE transactions, and counter rows. The analysis specifically measures performance, gap occurrence, and duplicate resistance under concurrent load. This provides empirical data to help engineers choose the right concurrency control model for high-throughput billing systems.

  • Sequences offer speed but create gaps under high concurrency; assess if gaps are acceptable.
  • SERIALIZABLE transactions guarantee no duplicates or gaps but significantly reduce throughput.
  • Max()+1 is simple but prone to race conditions without strict locking or serialization.
  • Counter row approach balances consistency and performance for multi-tenant isolation.
  • PostgreSQL 17 handles these contention patterns efficiently, but locking remains the bottleneck.
TRADE-OFFSequences vs SERIALIZABLESequencesFast throughputGaps under loadSERIALIZABLEGuarantees no gapsLow throughputvs
Planet PostgreSQL database

Robert Haas to Present pg_plan_advice Workshop in Oct 2026

Core contributor Robert Haas is hosting a hacking workshop in October 2026 focused on his presentation regarding pg_plan_advice. The session targets plan stability and user-level planner control for PostgreSQL. Participants must sign up via a provided form to receive a session invite.

  • Workshop focuses on pg_plan_advice for managing plan stability.
  • Target audience includes engineers interested in user planner control.
  • Attendance requires registration through the official sign-up form.
  • Event is scheduled for October 2026 with specific session invites.
  • Led by Robert Haas, a key figure in PostgreSQL core development.
CHECKLISTWorkshop Participation GuideFocus on pg_plan_advice for stabilityTarget user-level planner controlRegister via official sign-up formAttend session in October 2026
AWS What's New awsdatabase ↺ since 09-25

Amazon RDS PostgreSQL 19 Beta 4 now in Preview Environment

AWS has made PostgreSQL 19 Beta 4 available in the RDS Database Preview Environment, allowing users to evaluate the pre-release version. This build refines query performance and autovacuum management capabilities introduced in earlier betas, alongside stability improvements. Key updates include bug fixes for the pg_stat_autovacuum_scores view and corrected freeze-score scaling for better tuning.

  • PostgreSQL 19 Beta 4 is now available for evaluation in the RDS Database Preview Environment
  • Autovacuum management improvements include rebalanced cost limits for parallel workers
  • Fixes address pg_stat_autovacuum_scores reporting for TOAST tables and freeze-score scaling
  • Users can now tune autovacuum prioritization more effectively with corrected scaling metrics
BY THE NUMBERSPostgreSQL 19 Beta 4 Preview19Major Version in Beta 4Now available for RDS evaluation
PostgreSQL News database ↺ since 09-24

PgBouncer 1.26.0 Patches 3 CVEs, Adds Meson Build and Pool Timeouts

PgBouncer 1.26.0 addresses three critical denial-of-service vulnerabilities triggered by unauthenticated clients or malicious servers, specifically involving SCRAM nonce handling, integer overflows, and unbounded iteration counts. The release introduces functional improvements including tracking of search_path and default_transaction_read_only, new pool_idle_timeout configuration, and per-user/query_wait_timeout settings. Additionally, it adds Meson build support and removes the deprecated online restart (-R) functionality.

  • Patch immediately to fix DoS risks from unauthenticated SCRAM and integer overflow attacks.
  • Migrate from Make to Meson build system for future compatibility.
  • Utilize new pool_idle_timeout and granular query_wait_timeout settings.
  • Remove deprecated -R flag usage and verify search_path tracking behavior.
  • Monitor for malicious server-side SCRAM iteration count attacks.
BY THE NUMBERSPgBouncer 1.26 Patches 3 CVEs3Critical vulnerabilities addressedDoS risks from SCRAM and overflows
InfoQ generaldevops ↺ since 09-26

Perplexity replaces DynamoDB with homegrown CobbleDB for 5x latency gains

Perplexity has migrated its search infrastructure from Amazon DynamoDB to CobbleDB, an internally developed key-value store written in Rust. This architectural shift was designed to handle large document batches and high query volumes more efficiently. The move has resulted in a fivefold reduction in query latency alongside decreased cloud storage costs.

  • Perplexity built CobbleDB in Rust to replace DynamoDB for search infrastructure
  • Migration achieved 5x improvement in query latency for high-volume traffic
  • Internal key-value store reduced overall cloud storage expenses
  • Architecture optimized specifically for handling large document batches
↑