| From: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
|---|---|
| To: | Zhijie Hou <houzhijie22(at)gmail(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> |
| Cc: | "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Fix assert failure in composite type dependency check for index expr |
| Date: | 2026-11-26 20:58:21 |
| Message-ID: | 8bbd5147-d2ce-4179-bced-aa19976d229f@iki.fi |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 26/11/2026 17:22, Zhijie Hou wrote:
> On Thu, Nov26, 2026 at 11:06 AM Chao Li wrote:>> 2
>> In the preceding if (rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
>> branch, since this patch adds the exprType() check to
>> CheckTypeDependencyInSingleRelExpr(), the first check becomes redundant.
>> Maybe we can remove it and merge the two comments.
>
> Agreed. Since CheckTypeDependencyInSingleRelExpr() also accepts a
> List directly, we can drop the foreach loop over partexprs as well and
> pass the expression list in one call, matching indexprs below it. Done
> in the attached v2.
Committed. I did a bunch of rewording of the comments and the commit
message, but not material changes. Thank you!
- Heikki
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2026-11-26 21:04:38 | Re: Fix two race conditions in processing interrupts |
| Previous Message | Antonin Houska | 2026-11-26 20:16:46 | Re: Allow progress tracking of sub-commands |