OffNet Newsroom

Daily topic roundup

Database Technology

Monday, October 12, 2026 · 7 stories, curated & summarized — click any story for the source.

Christophe Pettus discusses the plan_cache_mode GUC, which allows overriding PostgreSQL's default prepared statement planning behavior. This setting helps correct poor execution plans caused by inaccurate cost estimates when working with skewed data distributions. It provides a mechanism to choose between first-plan-caching and force-custom-plan strategies.

  • Use plan_cache_mode to override automatic plan selection when cost estimates fail.
  • Addresses execution plan degradation caused by data skew in prepared statements.
  • Allows switching between caching the first plan or forcing a custom plan per execution.
  • Valuable for consultants tuning applications with unpredictable query patterns.
  • Avoids hardcoding plan hints by adjusting a session-level configuration parameter.
Percona Blog database

MySQL 26.7 Launches Calendar-Based Versioning Era

MySQL has transitioned from the traditional 8.0 single-track model to a new calendar-based versioning scheme with the release of 26.7. This shift marks the end of the 8.0 to 9.7 LTS era and introduces a predictable release cadence. The move aims to modernize how updates and feature sets are delivered to the community and enterprise users.

  • MySQL abandons the 8.0 single-track model for a calendar-based release schedule.
  • Version 26.7 signals the start of this new era following the 9.7 LTS period.
  • Expect more frequent, predictable updates rather than major version jumps.
  • Review release notes for 26.7 to identify breaking changes in the new cadence.
TRADE-OFFMySQL Versioning ShiftOld 8.0 ModelSingle-track release pathMajor version jumps onlyUnpredictable update cadenceNew 26.7 EraCalendar-based schedulingFrequent minor updatesPredictable delivery cyclevs
Planet PostgreSQL database

pg_statviz adds LLM analysis across RPM distros

The pg_statviz tool, which snapshots and charts PostgreSQL statistics, now integrates with LLMs like Claude, Gemini, and OpenAI for automated analysis. This update resolves previous dependency issues that limited AI features to Fedora, enabling support across all RPM-based distributions. The integration allows users to query their local Ollama models or cloud APIs to interpret database metrics.

  • pg_statviz now supports LLM-based analysis on all RPM distros, not just Fedora.
  • Users can trigger AI explanations via Claude, Gemini, OpenAI, or local Ollama models.
  • Resolution required adding dozens of Python packages to broader RPM ecosystems.
  • Tool remains lightweight, snapping stats and generating charts before AI interpretation.
HOW IT WORKSpg_statviz LLM Workflow1Snapshot PostgreSQL metrics2Generate static charts3Send data to LLM4Receive automated analysis

Radim Marek explains how TABLESAMPLE allows PostgreSQL to retrieve a random subset of rows without scanning the entire table, offering a performance alternative to full sequential scans for exploratory queries. While a standard COUNT(*) on a large table requires reading every page—resulting in significant I/O and latency even if cached—TABLESAMPLE bypasses this overhead by sampling directly from the heap or index. This technique is particularly useful when an exact count is unnecessary, enabling faster answers for large datasets where indexing the filtered column is not feasible.

  • Full sequential scans on unindexed large tables cause high buffer read counts and latency, even for simple aggregations.
  • TABLESAMPLE provides a low-cost alternative for exploratory data analysis when exact precision is not required.
  • Caching benefits are limited for one-off full scans; sampling reduces I/O regardless of buffer cache hit rates.
  • Use TABLESAMPLE to get rough estimates quickly on tables where creating an index for the filter column is prohibitive.
AWS What's New awsdatabase ↺ since 10-09

Amazon RDS for Oracle adds pre-upgrade checks and connection-ready events

Amazon RDS for Oracle now allows DBAs to manually run minor version upgrade prechecks before scheduled maintenance windows or manual upgrades. The system verifies critical conditions like storage space and object validity, halting the process if issues are detected. Additionally, a new RDS event signals when the database instance is accepting connections again, enabling earlier application recovery during patching.

  • Run manual prechecks to catch storage or object issues before maintenance windows
  • Use new RDS events to reconnect apps while background patching continues
  • Reduces total application downtime by decoupling connection readiness from full patch completion
  • Prechecks stop upgrades early if invalid triggers or insufficient space are found

Fleet impact: For Oracle ExaCC/RAC and RDS Oracle fleets, leverage the new precheck API to validate upgrade readiness proactively, preventing maintenance window failures. Use the connection-ready event to implement automated failback or traffic re-routing scripts, significantly shrinking the effective downtime window for critical workloads.

WORTH QUOTINGThe gist“Amazon RDS for Oracle now allows DBAs to manually run minorversion upgrade prechecks before scheduled maintenancewindow…— AWS What's New
AWS Database Blog awsdatabase ↺ since 10-08

AWS details replacing SSIS control flow with Step Functions and Lambda

This guide covers migrating complex SSIS packages to Amazon Aurora PostgreSQL, specifically addressing control flow, foreach loops, and script tasks. It recommends substituting these with AWS Step Functions state machines, Lambda functions, and EventBridge for scheduling. The approach replaces SQL Server Agent with native AWS orchestration and event services.

  • Replace SSIS control flow with AWS Step Functions state machines for robust orchestration
  • Convert Foreach Loop Containers to Step Functions Map and Parallel states
  • Swap Script Tasks for AWS Lambda functions to handle custom logic
  • Use Amazon EventBridge to replace SQL Server Agent for job scheduling
Planet PostgreSQL database ↺ since 10-11

PostgreSQL 17 infinite recursion in policies: cost analysis and fixes

PostgreSQL 17 can raise an 'infinite recursion detected in policy' error when specific row-level security policies trigger recursive evaluation loops. The article benchmarks the performance impact of various fixes on a million-row dataset, revealing a performance disparity ranging from 0.09 ms to 6.6 seconds. This highlights the critical need to audit RLS policy logic to prevent both runtime errors and significant query degradation.

  • PostgreSQL 17 detects and halts recursive policy evaluation loops explicitly.
  • Fix performance varies drastically, from negligible to 6.6 seconds per million rows.
  • Audit RLS policies for self-referencing logic to prevent recursion errors.
  • Benchmark policy changes against large datasets before production deployment.
↑