Thanks Dilip, I have fixed your comments, please find the updated patch.

On Tue, Mar 8, 2022 at 9:44 PM Dilip Kumar <dilipbal...@gmail.com> wrote:.

> +            /* incompressible, ignore on subsequent compression passes. */
> +            orig_attr->tai_colflags |= TOASTCOL_INCOMPRESSIBLE;
>
> Do we need to set TOASTCOL_INCOMPRESSIBLE while trying to externalize
> it, the comment say "ignore on subsequent compression passes"
> but after this will there be more compression passes?  If we need to

set this TOASTCOL_INCOMPRESSIBLE then comment should explain this.
>
That was a mistake, this flag is not required at this point, as the
attribute is externalized it will be marked as TOASTCOL_IGNORE, and
such columns are not considered for compression, I removed it. Thanks for
pointing it out.

-- 
Regards,
Davinder
EnterpriseDB: http://www.enterprisedb.com

Attachment: v2_0001_optimize_external_toast_storage.patch
Description: Binary data

Reply via email to