Re: Adding REPACK [concurrently] - Mailing list pgsql-hackers

From Antonin Houska
Subject Re: Adding REPACK [concurrently]
Date
Msg-id 34692.1773952655@localhost
Whole thread Raw
In response to Re: Adding REPACK [concurrently]  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: Adding REPACK [concurrently]
List pgsql-hackers
Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:

> So here's v43.  Here, I've changed the CONCURRENTLY implementation to go
> through table AM.  This necessitated changing it to use tuples in slots
> instead of HeapTuple.  This is good because we can avoid repeated tuple
> form/deform, which could get pretty expensive.  Antonin's 0004 patch
> here looks suspicious here though, because it deforms the tuple and
> forms it again, which sounds unnecessary now.

I suppose you mean
v42-0004-Serialize-decoded-tuples-without-flattening.patch. This deforms the
tuple to get the external attributes and to write them to file. The tuple the
logical worker received from reorderbuffer.c cannot be passed to the backend
executing REPACK because it may contain "external indirect" attributes,
i.e. pointers to the worker's memory.

-- 
Antonin Houska
Web: https://www.cybertec-postgresql.com



pgsql-hackers by date:

Previous
From: Mahendra Singh Thalor
Date:
Subject: Re: pg_restore: TAP test case typo(wrong word) for an error hint in 001_basic.pl
Next
From: Robert Haas
Date:
Subject: Re: pg_plan_advice