2026-05-18

Enforce INSERT RLS checks for FOR PORTION OF leftovers?

## Incremental Update: Paul Jungwirth (FOR PORTION OF author) Responds Paul Jungwirth, the author of the `FOR PORTION OF` implementation, has weighed in and taken a clear position **against** treatin...

[PATCH] refint: Avoid reusing cascade UPDATE plans.

# Technical Analysis: refint Plan Cache Bug and Resolution ## The Core Problem The `contrib/spi/refint` module provides `check_foreign_key()` and `check_primary_key()` trigger functions that implem...

Move FOR PORTION OF checks out of analysis

# Move FOR PORTION OF Checks Out of Analysis ## Core Problem The `FOR PORTION OF` feature (a temporal/period-based SQL construct being added in PostgreSQL 19) has validation checks that are current...

[PATCH] vacuumdb: Add --exclude-database option

# Technical Analysis: vacuumdb --exclude-database Option ## Core Problem The `vacuumdb --all` command in PostgreSQL's client utilities vacuums every connectable database on a cluster without except...

[PATCH] Make NumericVar storage semantics explicit

## Incremental Update: v3 and v4 Patches Posted (Housekeeping Only) ### What's New Two rapid-fire postings from the author, both purely mechanical fixes with no design evolution: 1. **v3 (2026-05-1...

Fix small issues of pg_restore_extended_stats()

# Fix Small Issues of pg_restore_extended_stats() ## Technical Context `pg_restore_extended_stats()` is part of PostgreSQL's statistics import/export infrastructure, which allows `pg_dump`/`pg_rest...

misleading error message in ProcessUtilitySlow T_CreateStatsStmt

# Technical Analysis: Misleading Error Message in ProcessUtilitySlow T_CreateStatsStmt ## Core Problem This thread begins with a seemingly simple observation about a misleading error message but ev...

[PATCH] Fix REPACK decoding worker not cleaned up on FATAL exit

## Incremental Analysis: v3 Patch Using PG_ENSURE_ERROR_CLEANUP ### Key Technical Development The thread has converged on a third approach after both v1 and v2 were found to have fundamental flaws. ...

pgstat: Flush some statistics within running transactions, take 2

# pgstat: Flush Some Statistics Within Running Transactions, Take 2 ## Core Problem PostgreSQL's statistics subsystem (`pgstat`) accumulates counters in backend-local memory and only flushes them t...

FOR PORTION OF should reject GENERATED columns

## Incremental Update: v2 Patch Posted Paul Jungwirth posted a v2 of his own patch for this issue. The key technical development: ### Patch Evolution: v1 → v2 - **v1** (referenced but not in this m...

postgres_fdw: restore_stats uses current user's mapping instead of table owner's during ANALYZE

# Technical Analysis: postgres_fdw User Mapping Inconsistency in ANALYZE with restore_stats ## Core Problem When `ANALYZE` is run on a foreign table managed by `postgres_fdw`, the system must establ...

BUG: Cascading standby fails to reconnect after falling back to archive recovery

## Incremental Update: Minimal Progress — Consensus Forming on Pragmatic Fix The two new messages are brief and contain no new technical content, patches, or architectural arguments. They represent a...

Review comments on createPartitions() in pgbench.c

# Technical Analysis: Review Comments on createPartitions() in pgbench.c ## Core Problem This thread raises code robustness concerns in the `createPartitions()` function within `pgbench.c` — Postgr...

Add psql tab completion support for FOR PORTION OF

## Incremental Update: Add psql tab completion support for FOR PORTION OF ### Summary No substantive technical progress since the last analysis. The only new message is from Kiran (the patch author)...

Add a greedy join search algorithm to handle large join problems

## Incremental Analysis: Round 8 (2026-05-14) ### Summary A single brief message from Tomas Vondra referencing an external thread about updating `join_collapse_limit` / `geqo_threshold` defaults. No...

Improve conflict detection when replication origins are reused

## Incremental Update: New Scenario Discussion and Scope Clarification ### New Technical Discussion: ALTER SUBSCRIPTION Publisher-Switching Scenario Shveta Malik raised a new scenario that extends t...

[PATCH] Fix null pointer dereference in PG19

# Technical Analysis: Null Pointer Dereference in FOR PORTION OF with Views and INSTEAD OF Triggers ## Core Problem A null pointer dereference crash occurs in PostgreSQL 19 when combining three fea...

[PATCH] Make spelling consistent in waiteventset.c

## Incremental Update: Committer Attribution Concern The only new message is from **Bruce Momjian**, who attempted to commit the patch but hit a procedural/policy obstacle rather than a technical one...

[PATCH] no table rewrite when set column type to constrained domain

# Technical Analysis: Avoiding Table Rewrite When Setting Column Type to Constrained Domain ## Core Problem When PostgreSQL executes `ALTER TABLE ... ALTER COLUMN ... SET DATA TYPE`, it traditional...

Checkpoint replication slots later

## Incremental Analysis: New Response from Huseyin ### Summary A new participant (Huseyin) responds with approval of the patch but raises a tangential but technically interesting observability conce...

[PATCH] REPLICA IDENTITY USING INDEX accepts column with invalid NOT NULL

# Technical Analysis: REPLICA IDENTITY USING INDEX Accepts Columns with NOT NULL NOT VALID ## Core Problem This bug report identifies a logical replication correctness issue introduced as a side ef...

Fix bug with accessing to temporary tables of other sessions

## Patch Committed and Back-Patched The primary development this round is that **Alexander Korotkov pushed the fix** on 2026-05-14. The commit covers master, with back-patches to PG17 and PG18 requir...

Redundant/mis-use of _(x) gettext macro?

# Technical Analysis: Redundant/Mis-use of _(x) gettext Macro ## Core Problem This thread begins with what appears to be a simple cleanup — removing seemingly unnecessary `_()` gettext macro wrappi...

Should IGNORE NULLS cache nullness for volatile arguments?

## Incremental Update: Thread Resolved — Patch Reviewed, Refined, and Pushed ### Summary The thread reached resolution quickly. Tatsuo Ishii reviewed the original patch, suggested a clean encapsula...

DOCS: Describe some missing parameters on CREATE/ALTER PUBLICATION pages

# DOCS: Describe Missing Parameters on CREATE/ALTER PUBLICATION Pages ## Core Problem The PostgreSQL documentation for `CREATE PUBLICATION` and `ALTER PUBLICATION` SQL commands contains an inconsis...

035_standby_logical_decoding might fail due to FATAL message lost inside libpq

# Deep Technical Analysis: FATAL Message Lost Inside libpq During Standby Logical Decoding ## Core Problem The test `035_standby_logical_decoding` intermittently fails on the buildfarm because a FA...

Bug? pg_rewind produces unusable but starting database with standby recovery

# Bug Analysis: pg_rewind Produces Unusable but Starting Database with Standby Recovery ## Core Problem This thread identifies a subtle and dangerous bug in PostgreSQL's recovery infrastructure whe...

call for applications: hacker mentoring 2026

# Analysis: PostgreSQL Hacker Mentoring Program 2026 — Call for Applications ## Overview This thread documents the third year of Robert Haas's 1:1 hacker mentoring program, which pairs aspiring Post...

Adjust pg_stat_get_lock() prorows to match lock types

## Incremental Update: Rebase Only, No Substantive Progress The sole new message from Evan Li (2026-05-15) is a one-word rebase notification with no technical content, no design changes, and no new a...

Bug in ALTER SUBSCRIPTION ... SERVER / ... CONNECTION with broken old server

## New Developments (Since Prior Analysis #3) ### Jeff Davis posts v5 — a 4-patch series addressing Evan's tablesync-slot concern (2026-05-14) Jeff restructured his approach into a more granular ser...

Set calcSumX2 = true in numeric_(poly_)deserialize

# Technical Analysis: Set calcSumX2 = true in numeric_(poly_)deserialize ## Core Problem This thread addresses a subtle but semantically important bug in PostgreSQL's aggregate deserialization func...

Fix SPLIT PARTITION bound-overlap bug and other improvements

## Incremental Update: Alexander Korotkov Takes Over Patch Revision, Signals Intent to Commit ### Key Development Alexander Korotkov (Supabase) has reviewed and revised the 4-patch series, making su...

Fix jsonpath .split_part() to honor silent mode

## Incremental Update: Acknowledgments and Code Audit Confirmation The new messages are brief acknowledgments with no new technical content or patches. However, one operationally significant detail e...

A trivial fix on a comment in pgstat_assoc_relation()

# Analysis: Trivial Comment Fix in pgstat_assoc_relation() ## Core Problem This is a minor code hygiene issue in PostgreSQL's statistics subsystem. The function `pgstat_assoc_relation()` contains a...

libpq: Process buffered SSL read bytes to support records >8kB on async API

# libpq Async API Deadlock with SSL Records >8kB ## The Core Problem The libpq asynchronous API has a fundamental architectural flaw: it assumes that after calling `pqReadData()` once, if no comple...

[SQL/PGQ] Early pruning for GRAPH_TABLE path generation

## Incremental Update: Ashutosh Bapat's Review and v3 Patch Restructuring ### New Reviewer: Ashutosh Bapat (2026-05-14) Ashutosh Bapat, a key contributor to SQL/PGQ infrastructure, weighed in with a...

SQL/JSON json_table plan clause

## Incremental Update: v23 Patch Set Submitted The author (hukutoc@gmail.com) has submitted v23, addressing most of Alexander Korotkov's 8 review points from the previous round. The key development i...

Reduce timing overhead of EXPLAIN ANALYZE using rdtsc?

# Deep Technical Analysis: Reducing EXPLAIN ANALYZE Timing Overhead via RDTSC ## Core Problem EXPLAIN ANALYZE with TIMING ON in PostgreSQL nearly **doubles** query execution time for simple, row-in...

SQL Property Graph Queries (SQL/PGQ)

# SQL Property Graph Queries (SQL/PGQ) - Deep Technical Analysis ## Problem Statement This thread tracks the implementation of SQL Property Graph Queries (SQL/PGQ) as specified in SQL:2023 (ISO/IEC...

Re-add recently-removed tests for ltree and intarray

# Re-adding Regression Tests for ltree and intarray: Stack Depth and Platform-Specific Recursion Failures ## Core Problem Regression tests for the `ltree` and `intarray` contrib extensions were **r...

Fix bug of COPY TO support partition table

# Fix Bug of COPY TO Support Partition Table ## Core Problem The "Support COPY TO for partitioned tables" feature introduced a bug in the attribute mapping logic when converting partition tuples to...

[PATCH] Expose checkpoint timestamp and duration in pg_stat_checkpointer

# Technical Analysis: Exposing Checkpoint Timestamp and Duration in pg_stat_checkpointer ## Core Problem PostgreSQL's checkpointer process is critical to database reliability — it ensures dirty buf...

Logical Replication - revisit `is_table_publication` function implementation

# Logical Replication: Revisiting `is_table_publication` and `is_schema_publication` Implementation ## Core Problem In PostgreSQL's logical replication subsystem, two internal functions — `is_table...

First draft of PG 19 release notes

## No substantive new progress Two new messages constitute a brief, self-contained editorial correction: **pg@bowt.ie** (likely Peter Geoghegan) flagged the "Add fake LSN support to hash index AM" i...

Fix the race condition for updating slot minimum LSN

# Fix the Race Condition for Updating Slot Minimum LSN ## Core Problem This thread addresses a race condition in PostgreSQL's replication slot WAL reservation mechanism that can lead to **premature...

Import Statistics in postgres_fdw before resorting to sampling.

## Incremental Update: Thread Resolution The two new messages are purely procedural — Etsuro Fujita announced intent to push the updated patch (the Coverity fix with `pstrdup` and `free_remattrmap()`...

meson: Make test output much more useful on failure (both in CI and locally)

# Technical Analysis: Improving Test Failure Output in PostgreSQL's Meson Build System ## Core Problem PostgreSQL's test infrastructure, particularly when using the Meson build system, produces deep...

Fix bug of COPY (on_error set_null)

# Fix Bug of COPY (on_error set_null) — Array Indexing Mismatch ## Core Problem This thread reports a **memory safety bug and correctness violation** in the recently added `COPY ... (on_error set_n...

[(known) BUG] DELETE/UPDATE more than one row in partitioned foreign table

# Deep Technical Analysis: DELETE/UPDATE Corruption in Partitioned Foreign Tables ## The Core Problem This thread addresses a data corruption bug in PostgreSQL's Foreign Data Wrapper (FDW) infrastr...

[PATCH] Add pg_current_vxact_id() function to expose virtual transaction IDs

## Incremental Update: New Review from Solai A new participant (Solai) has posted a review/testing report that adds modest technical substance to the discussion, primarily reinforcing existing argume...

Add a guard against uninitialized default locale

# Technical Analysis: Add a Guard Against Uninitialized Default Locale ## The Core Problem This thread addresses a **defensive programming concern** in PostgreSQL's locale/collation infrastructure:...

Add missing period to HINT messages

# Add Missing Period to HINT and DETAIL Messages ## Core Problem PostgreSQL has a documented error message style guide that mandates: "Detail and hint messages: Use complete sentences, and end each...

pg_stash_advice: dump file with overlong stash name crashes worker in a restart loop

# pg_stash_advice: Crash Loop from Overlong Stash Name in Persistence Dump File ## Executive Summary This thread reports a serious availability bug in the `pg_stash_advice` extension (apparently a ...

Simplify signature of ProcessStartupPacket()

# Simplify Signature of ProcessStartupPacket() ## Technical Problem This thread addresses a code cleanup opportunity in PostgreSQL's connection startup path. The function `ProcessStartupPacket()` —...

Fix array-element quoting in postgres_fdw import statistics

# Fix Array-Element Quoting in postgres_fdw Import Statistics ## Core Problem The `postgres_fdw` extension's statistics import feature (`ANALYZE` on foreign tables) constructs a remote query agains...

Lazy snapshot distribution in logical decoding

# Lazy Snapshot Distribution in Logical Decoding ## Core Problem: O(N²) Snapshot Growth in the Reorder Buffer This patch addresses a fundamental scalability problem in PostgreSQL's logical decoding...

Random pg_upgrade 004_subscription test failure on drongo

## Incremental Update: Buildfarm Client Bug Fixed for Log Capture (2026-05-16) Andrew Dunstan reports he has identified and fixed the buildfarm client bug that was preventing `pg_upgrade_output.d/` l...

pg_recvlogical: honor source cluster file permissions for output files

# pg_recvlogical: File Permission Bug Analysis ## Core Problem `pg_recvlogical` is PostgreSQL's tool for receiving logical replication changes from a source cluster. Its documentation claims it pre...

Bug: mdunlinkfiletag unlinks mainfork seg.0 instead of indicated fork+segment

# Bug Analysis: mdunlinkfiletag Unlinks Wrong Fork/Segment ## Core Problem The `mdunlinkfiletag()` function in PostgreSQL's magnetic disk (MD) storage manager has a latent bug where it always unlin...

[PATCH] Fix for bug #19474: LIKE fails to match literal backslashes with nondeterministic collations

# Technical Analysis: LIKE Fails to Match Literal Backslashes with Nondeterministic Collations ## Core Problem PostgreSQL's LIKE operator produces incorrect results when matching patterns containin...

[PATCH] Add pg_get_subscription_ddl() function

# Technical Analysis: pg_get_subscription_ddl() Function Patch ## Core Problem PostgreSQL lacks a built-in function to reconstruct the DDL (Data Definition Language) statement for logical replicati...

Adding pg_dump flag for parallel export to pipes

## No substantive progress Another minimal maintenance drop from Nitin — removing the `split` command from the Windows test path and rebasing against HEAD. Single sentence description with no technic...

[PATCH] Fix psql tab completion for REPACK boolean options

## Incremental Update: REPACK Option Parsing Bugs Discovered and Fixed The original tab-completion patch has been committed. More significantly, Fujii discovered two additional **server-side parsing ...

postgres_fdw: use_scram_passthrough on user mapping is ignored when also set on server

# Technical Analysis: SCRAM Passthrough Option Precedence in postgres_fdw and dblink ## Core Problem PostgreSQL's foreign data wrapper infrastructure (postgres_fdw and dblink) supports the `use_scr...

Order of tables dumped by pg_dump

# Technical Analysis: Determinism of pg_dump Table Output Ordering ## Core Problem A user observed that two semantically identical PostgreSQL schemas—one created from scratch via DDL scripts and on...

bump minimum supported version of psql and pg_{dump,dumpall,upgrade} to v10

## Incremental Update — Buildfarm Preparation (May 16) The thread advanced on the operational/infrastructure side, not on patch content. ### Key Development: Buildfarm Client Updated Andrew Dunstan...

Track skipped tables during autovacuum and autoanalyze

## Incremental Update — 2026-05-14 through 2026-05-16 ### Summary A new reviewer (Zsolt Parragi from Percona) joined the thread and surfaced three concrete issues with the patch. Two were real bugs...

[PATCH] doc: Document that invalid indexes are skipped during ATTACH PARTITION

# Documentation Gap: Invalid Index Skipping During ATTACH PARTITION ## Core Problem When `ALTER TABLE ... ATTACH PARTITION` is executed, PostgreSQL attempts to match indexes on the partition being ...

Truncate logs by max_log_size

# Technical Analysis: Truncate Logged Statements by Maximum Length ## Core Problem PostgreSQL's logging infrastructure has no built-in mechanism to limit the size of individual logged statements. W...

log_checkpoints: count WAL segment creations from all processes

# Deep Technical Analysis: Fixing WAL Segment Creation Accounting in `log_checkpoints` ## The Core Problem PostgreSQL's `log_checkpoints` output includes a field "WAL file(s) added" (internally `ck...

PSQL - prevent describe listing tables that are already in listed schemas

# PSQL Publication Describe Command: Filtering Redundant Table Listings ## Core Problem The `\dRp+` command in psql (which describes publications in detail) displays redundant information when a pu...

Refactor: allow pg_strncoll(), etc., to accept -1 length for NUL-terminated cstrings.

## Incremental Update: Commit Intent Announced, No New Technical Content The two new messages are brief procedural exchanges with no new technical arguments, patches, or design discussion. - **Jeff ...

doc: fix pg_restore_extended_stats() example syntax

# Documentation Fix: pg_restore_extended_stats() Example Syntax Error ## Core Problem A trivial but potentially confusing typo was identified in the PostgreSQL documentation for the `pg_restore_ext...

Sequence Access Methods, round two

# Sequence Access Methods: A Deep Technical Analysis ## The Core Problem PostgreSQL's sequence infrastructure is monolithic: every sequence stores its state (last_value, is_called, log_cnt) in a si...

[PATCH] Fix column name escaping in postgres_fdw stats import

## Patch Committed and CF Entry Closed Fujita pushed the patch on 2025-05-14, confirming the fix is now in the tree. He did not extend the test coverage beyond his v2 patch (i.e., Zhenwei Shang's sug...