OffNet Newsroom

Daily topic roundup

Database Technology

Sunday, August 09, 2026 · 8 stories, curated & summarized — click any story for the source.

Hacker News (100+ points) general

Shopify replaces Redis with MySQL for inventory reservations at scale

Shopify Engineering has migrated its inventory reservation system from Redis to MySQL, demonstrating that relational databases can handle high-throughput reservation workloads previously thought to require in-memory stores. The move addresses scaling challenges and simplifies the infrastructure stack by leveraging MySQL's durability and transactional guarantees. This shift suggests a strategic re-evaluation of caching layers for critical state management in large-scale e-commerce platforms.

  • Shopify moved inventory reservations from Redis to MySQL to improve scalability and reduce infrastructure complexity.
  • The migration proves MySQL can handle high-contention reservation workloads previously reserved for in-memory stores.
  • Consider evaluating relational databases for stateful services where durability and simplified ops outweigh raw latency needs.
  • Monitor transaction isolation levels and lock contention strategies when moving reservation logic to SQL.

Christophe Pettus details the use of the ignore_system_indexes GUC to recover from catalog index corruption. This setting forces sequential scans on system tables, bypassing potentially damaged indexes. It serves as a critical recovery mechanism when standard index-based lookups fail.

  • Use ignore_system_indexes to bypass corrupted catalog indexes during recovery.
  • Enables sequential scans on system tables when index access is unreliable.
  • Critical for restoring database integrity when system catalog indexes are damaged.
  • Part of PostgreSQL's broader GUC framework for low-level configuration control.
AWS What's New awsdatabase ↺ since 08-07

Amazon RDS exposes storage volume initialization status

Amazon RDS now allows users to monitor the initialization progress of storage volumes created from snapshots during restores, read replica creation, or Multi-AZ conversions. This visibility helps identify when the underlying storage blocks have finished downloading from S3 and are ready to handle latency-sensitive workloads. During this initialization phase, I/O latency may remain elevated until the volume is fully provisioned and ready.

  • Monitor initialization status to avoid performance issues when launching restored instances or replicas.
  • High I/O latency during volume setup is expected until initialization completes.
  • Use the new status to time workload cutover for latency-sensitive applications.
  • Applies to point-in-time restores, read replicas, and Single-AZ to Multi-AZ conversions.
BY THE NUMBERSStorage Initialization Metric3Blocks downloaded from S3Ready for latency-sensitive workloads
Planet PostgreSQL database ↺ since 08-07

PostgreSQL RLS for AI Agents: Testable Setup with Non-Owner Roles

Andrei Mironov outlines a method for securing PostgreSQL databases where AI agents operate as non-owner roles. The approach emphasizes enabling FORCE RLS, defining explicit policies, and managing controlled writes. It includes a rigorous testing strategy that verifies both access grants and denial scenarios to ensure robust security boundaries.

  • Enforce row-level security on tables even for roles that own them using FORCE RLS.
  • Assign AI agents non-owner roles to strictly limit database privileges.
  • Implement explicit policies for controlled writes to prevent unauthorized data mutation.
  • Validate security by running explicit denial tests to confirm policy enforcement.
  • Ensure testable setups by verifying both granted and denied access paths.
Planet PostgreSQL database ↺ since 08-07

Postgres as a Compute Layer for Agentic AI Workloads

PostgreSQL has become the default database for agentic AI, but many teams treat it merely as storage rather than leveraging its compute capabilities. As AI agents generate complex signals, state, and checkpoints, the database must handle concurrent multi-step workflows and shared state updates. AI engineers often lack the expertise to optimize Postgres for these novel workload patterns that differ significantly from traditional operations.

  • Shift mindset from Postgres as storage to a first-class compute layer for AI agents.
  • Optimize for concurrent multi-step workflows and shared state updates in agentic systems.
  • AI engineers need to explore PostgreSQL's capabilities beyond basic CRUD operations.
  • Production agentic workloads require different optimization strategies than traditional apps.
TRADE-OFFPostgres: Storage vs ComputeTraditional UsageSimple CRUD operationsBasic storage onlySingle-threaded patternsAgentic AI NeedsConcurrent multi-step workflowsShared state updatesComplex signal processingvs
Percona Blog database ↺ since 08-08

Percona benchmarks DuckDB MySQL engine against InnoDB at 500 GB scale

Percona tested its DuckDB storage engine for MySQL on an 80-core server with 187 GB RAM using 500 GB of TPC-H data. The evaluation compared the new engine against standard InnoDB and plain DuckDB as a reference point. The test involved three billion lineitem rows to assess performance at significant scale.

  • DuckDB MySQL engine enables columnar analytics directly within the MySQL architecture
  • Tested on high-end hardware: 80 cores and 187 GB RAM for 500 GB datasets
  • Includes three-billion-row TPC-H workload for realistic scale validation
  • Provides baseline comparison against traditional InnoDB row-store performance
Planet PostgreSQL database ↺ since 08-06

PostgreSQL DISTINCT in COUNT disables parallel query

Using DISTINCT inside a COUNT aggregate in PostgreSQL disables parallel query execution for the entire statement, regardless of available cores. This optimization gap causes significant performance degradation on large tables because the aggregate execution model cannot support parallelism. The limitation persists even with sufficient hardware resources or appropriate indexing.

  • DISTINCT in COUNT forces serial execution, wasting available CPU cores
  • Performance scales poorly with table size due to lack of parallelism
  • No configuration or index changes can restore parallel execution for this pattern
  • Review analytics workloads for COUNT(DISTINCT) to identify bottlenecks
PostgreSQL News database ↺ since 08-05

pgAdmin 4 v9.17 patches 7 CVEs, adds row limits and Helm Gateway API support

pgAdmin 4 version 9.17 has been released with 28 bug fixes and seven critical security vulnerabilities addressed. The update introduces a configurable row limit for the View Data action to prevent performance issues on large tables. It also adds the authenticated user identity to HTTP access logs and offers an opt-in Gateway API HTTPRoute template in its Helm chart.

  • Fixes seven security vulnerabilities (CVE-2026-17346 through 17351, 17566) immediately.
  • New row count cap for View Data prevents browser hangs on large tables.
  • Helm chart now supports Gateway API HTTPRoute as an Ingress alternative.
  • HTTP access logs now include authenticated user identity for better auditing.
  • Total of 28 bug fixes included in this minor release.
BY THE NUMBERSSeven Critical CVEs Patched7Security vulnerabilities fixedCVEs 2026-17346 through 17351 and 17566