Re: REPACK (CONCURRENTLY) loses missing values of columns added without a rewrite - Mailing list pgsql-hackers

From Sami Imseih
Subject Re: REPACK (CONCURRENTLY) loses missing values of columns added without a rewrite
Date
Msg-id CAN12+YKDTdP=_UxH9OVTyRZocyjDrz2YTcxD6kjt-10A7Xk6tQ@mail.gmail.com
Whole thread
In response to Re: REPACK (CONCURRENTLY) loses missing values of columns added without a rewrite  (Álvaro Herrera <alvherre@kurilemu.de>)
Responses Re: REPACK (CONCURRENTLY) loses missing values of columns added without a rewrite
List pgsql-hackers
Thanks!

> I wonder why in your fix we keep a pointer to the whole relation instead
> of just to its tupledesc.  What about the attached v4?

It was expedient. The tupledesc is all we need, so v4 is better. This LGTM.

> I ran your test with only CreateTupleDescCopy() to see how would your new
> test would fail (because such a descriptor wouldn't have the missing
> attrs), but it failed differently, because attnotnull is not set.
> Anyway, this was just a perhaps pointless experiment.

Thanks for checking.  Right, CreateTupleDescCopy() would just reintroduce
the problem we're fixing.

v5 attached fixes indentation.

--
Sami Imseih
Amazon Web Services (AWS)

Attachment

pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: Logical Implication
Next
From: Matheus Alcantara
Date:
Subject: Re: RI fastpath misses checking EXECUTE on functions