OffNet Newsroom

Daily topic roundup

Database Technology

Thursday, August 27, 2026 · 7 stories, curated & summarized — click any story for the source.

CORTO deployed Amazon Aurora PostgreSQL with pgvector to handle 7.6 billion vectors and 2.5 billion documents in production. The system delivers sub-second semantic search results for over 10,000 law firms while reducing storage costs by 75%. This demonstrates the capability of managed PostgreSQL for large-scale vector workloads.

  • Aurora PostgreSQL with pgvector supports billions of vectors in production environments.
  • Legal semantic search achieved sub-second latency for 10,000+ firm users.
  • Storage costs reduced by 75% compared to previous implementations.
  • Validates Aurora as a viable platform for massive vector indexing needs.
Planet PostgreSQL database

PostgreSQL 18: UUID v7 Cuts Insert Latency 23x Over v1/v4

PostgreSQL 18.4 users report up to 23x faster multi-row insert performance by switching primary keys from UUID v1 to v7. The change requires an exclusive lock during the ALTER TABLE operation, which the author mitigated using short lock timeouts and retries. While UUIDs provide global uniqueness, this performance gain highlights v7's time-ordered structure as a superior alternative to v1 or v4 for high-throughput workloads.

  • UUID v7’s time-ordered layout reduces index fragmentation and insert contention compared to v1/v4.
  • Switching defaults requires an exclusive lock; use lock timeouts and retries to minimize downtime.
  • Performance gains were measured on tables with billions of rows under heavy write load.
  • PostgreSQL 18.4 is required to fully leverage UUID v7 capabilities for this optimization.

DataKernelBench tests LLMs on irregular database operators by translating SQL into PyTorch TorchPlan programs and optimizing CUDA or Triton kernels via execution-guided repair. Evaluated on TPC-H SF10 with an H100 GPU, the best full-query CUDA configuration outperforms torch.compile by 2.11x while maintaining a full pass rate. This research highlights the potential of LLMs to handle heterogeneous, data-movement-heavy database workloads that existing benchmarks overlook.

  • LLMs can optimize irregular database operators, not just ML tensors, via execution-guided repair.
  • Full-query CUDA optimization yields a 2.11x speedup over torch.compile on TPC-H SF10.
  • DataKernelBench fills the gap for heterogeneous, data-movement-heavy database workloads.
  • Triton and CUDA are viable targets for LLM-generated database kernel optimization.
BY THE NUMBERSLLMs Beat torch.compile on GPU Kernels2.11xSpeedup over torch.compileBest full-query CUDA config on TPC-H

AWS has purchased DuckLabs, the company responsible for developing and supporting DuckDB, a popular in-process analytical database. This acquisition signals Amazon's commitment to the tool and its developer team as it integrates the technology into its cloud ecosystem. The move brings the core maintainers of the open-source OLAP engine directly under Amazon's corporate umbrella.

  • DuckDB is now an AWS-owned asset, likely accelerating cloud-native integration features
  • In-process architecture allows low-latency analytics without external server dependencies
  • Expect deeper AWS service integrations for real-time data processing workloads
  • Open-source license terms remain unchanged despite corporate ownership shift
  • Developers should monitor for new managed hosting or optimization options from AWS

Christophe Pettus explains that PostgreSQL's logging collector functions as a small pipe-based daemon designed to prevent message loss and garbling. Enabling this feature requires a full server restart, a constraint practitioners must account for during configuration changes. The post clarifies the operational implications of using this mechanism for reliable log management.

  • Logging collector uses a pipe-based daemon to ensure message integrity.
  • Enabling logging_collector mandates a server restart.
  • Restart requirement impacts change window planning for DBAs.
  • Use this mechanism to prevent log message loss or garbling.
  • Plan maintenance windows before toggling this specific GUC.
Planet PostgreSQL database

Optimizing Postgres Queries Without Adding Indexes

Henrietta Dombrovskaya explores strategies for speeding up production queries when adding indexes is impossible. The article reinforces that while Postgres releases bring planner improvements, core optimization principles remain static. It addresses the specific scenario where high selectivity or parallel execution needs cannot be met by standard indexing.

  • Core optimization principles like selectivity and early aggregation remain unchanged across Postgres versions.
  • Index creation is not always an option in production environments due to constraints or risks.
  • New planner improvements in recent releases may offer alternative execution paths.
  • Analytical queries benefit from parallel execution strategies when indexing is off the table.
CHECKLISTOptimize Queries Without IndexesLeverage early aggregation to reduce row volumeSelect high-selectivity columns for filteringUtilize parallel execution for analytical queriesRely on planner improvements in new releases
Planet PostgreSQL database ↺ since 08-26

PostgreSQL 19 Adds WAIT FOR Command for Read-Your-Writes Consistency

PostgreSQL 19 introduces the WAIT FOR command, enabling sessions to block until WAL reaches a specific Log Sequence Number. This mechanism provides read-your-writes consistency on asynchronous replicas, eliminating the need for the performance overhead of synchronous replication. The syntax supports configurable modes, timeouts, and error handling options like NO_THROW.

  • Enables read-your-writes consistency without synchronous replication latency penalties.
  • New SQL command blocks session until WAL reaches a specified LSN position.
  • Supports MODE, TIMEOUT, and NO_THROW options for flexible error handling.
  • Reduces operational complexity for applications requiring strong consistency on replicas.
  • Requires upgrade to PostgreSQL 19 to utilize the WAIT FOR functionality.
↑