v8-0004-WIP-Call-verify_memtuples_sorted-after-qsort-for-.patch
text/x-patch
Filename: v8-0004-WIP-Call-verify_memtuples_sorted-after-qsort-for-.patch
Type: text/x-patch
Part: 0
Message:
Re: tuple radix sort
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v8-0004
Subject: WIP Call verify_memtuples_sorted() after qsort for consistency
| File | + | − |
|---|---|---|
| src/backend/utils/sort/tuplesort.c | 1 | 0 |
| src/test/regress/expected/namespace.out | 2 | 0 |
From 14df5854de4b73da8792c015859e8d7ecf09d4d0 Mon Sep 17 00:00:00 2001 From: John Naylor <john.naylor@postgresql.org> Date: Tue, 10 Feb 2026 19:10:20 +0700 Subject: [PATCH v8 4/4] WIP Call verify_memtuples_sorted() after qsort for consistency The regression test changes are from a user defined function that is now called a couple more times. --- src/backend/utils/sort/tuplesort.c | 1 + src/test/regress/expected/namespace.out | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/backend/utils/sort/tuplesort.c b/src/backend/utils/sort/tuplesort.c index 629d598d8b7..dea3347667f 100644 --- a/src/backend/utils/sort/tuplesort.c +++ b/src/backend/utils/sort/tuplesort.c @@ -3033,6 +3033,7 @@ tuplesort_sort_memtuples(Tuplesortstate *state) state->base.comparetup, state); } + verify_memtuples_sorted(state); } } diff --git a/src/test/regress/expected/namespace.out b/src/test/regress/expected/namespace.out index dbbda72d395..b78abdf21ea 100644 --- a/src/test/regress/expected/namespace.out +++ b/src/test/regress/expected/namespace.out @@ -149,6 +149,8 @@ NOTICE: current search_path: pg_catalog, pg_temp NOTICE: current search_path: pg_catalog, pg_temp NOTICE: current search_path: pg_catalog, pg_temp NOTICE: current search_path: pg_catalog, pg_temp +NOTICE: current search_path: pg_catalog, pg_temp +NOTICE: current search_path: pg_catalog, pg_temp REFRESH MATERIALIZED VIEW test_maint_search_path.test_maint_mv; NOTICE: current search_path: pg_catalog, pg_temp NOTICE: current search_path: pg_catalog, pg_temp -- 2.53.0