Re: Disabling Heap-Only Tuples - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Disabling Heap-Only Tuples
Date
Msg-id af3dpKXw_-Fbetr6@alvherre.pgsql
Whole thread
In response to Re: Disabling Heap-Only Tuples  (James Locke <james.locke.uk@gmail.com>)
Responses Re: Disabling Heap-Only Tuples
List pgsql-hackers
Hello James,

On 2026-May-08, James Locke wrote:

> Attached is a POC to enable userland table compaction: A top-level COMPACT
> command that performs the relocation directly in the server, with a
> stripped-down heap_relocate primitive instead of full UPDATE, and a
> built-in prune-and-truncate pass so it runs to a useful end state in one
> command.

How does this implementation handle the case of a seqscan in the middle
of scanning the table, which has already skipped the destination page
and not yet the page from where the table is to be removed?  There needs
to be a way to distinguish which of these to show (it must be exactly
one), and you didn't mention this in your description.

Thanks

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/



pgsql-hackers by date:

Previous
From: Ayush Tiwari
Date:
Subject: Disallow whole-row index references with virtual generated columns?
Next
From: Tom Lane
Date:
Subject: Re: Broken build on macOS (Universal / Intel): cpuid instruction not available