Re: Opclass parameters of indexes lost after REINDEX CONCURRENTLY - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Opclass parameters of indexes lost after REINDEX CONCURRENTLY
Date
Msg-id YX05++bLtwyfaOle@paquier.xyz
Whole thread Raw
In response to Re: Opclass parameters of indexes lost after REINDEX CONCURRENTLY  (Zhihong Yu <zyu@yugabyte.com>)
Responses Re: Opclass parameters of indexes lost after REINDEX CONCURRENTLY[
List pgsql-hackers
On Sat, Oct 30, 2021 at 04:11:06AM -0700, Zhihong Yu wrote:
> Should datumCopy() be used inside the loop ? I saw the following
> in get_attoptions(Oid relid, int16 attnum):

Yeah, you are right that it would be better here to use
get_attoptions() to grab a copy of each attribute's option directly
from the catalogs.  We also do that for predicates and expressions.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: remove internal support in pgcrypto?
Next
From: Tom Lane
Date:
Subject: Re: Add additional information to src/test/ssl/README