| From: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
|---|---|
| To: | Haibo Yan <tristan(dot)yim(at)gmail(dot)com>, jian he <jian(dot)universality(at)gmail(dot)com> |
| Cc: | Andreas Karlsson <andreas(at)proxel(dot)se>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: refactor ExecInitPartitionInfo |
| Date: | 2026-07-06 11:03:11 |
| Message-ID: | 4d3cf783-514c-4bb6-ae58-4fc3f1fb1c3c@iki.fi |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 03/04/2026 01:19, Haibo Yan wrote:
>> On Apr 1, 2026, at 6:12 AM, jian he <jian(dot)universality(at)gmail(dot)com> wrote:
>> Ok. I switched it back to
>>
>> + if (node &&
>> + (node->withCheckOptionLists != NIL ||
>> + node->returningLists != NIL ||
>> + node->onConflictAction == ONCONFLICT_UPDATE ||
>> + node->onConflictWhere ||
>> + node->operation == CMD_MERGE))
>> + {
>> + /* later map_variable_attnos need use attribute map, build it
>> now */
>> + part_attmap = build_attrmap_by_name(RelationGetDescr(partrel),
>> +
>> RelationGetDescr(firstResultRel),
>> + false);
>> + }
>> +
>
> Hi Jian,
>
> Thanks for working on this.
>
> I’m not convinced this refactoring buys us much in its current form.
+1, for all the reasons you said. I have marked this as rejected in the
commitfest app. Thanks!
- Heikki
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2026-07-06 11:04:08 | Re: Implement waiting for wal lsn replay: reloaded |
| Previous Message | Ayush Tiwari | 2026-07-06 11:03:03 | Re: REVOKE's CASCADE protection doesn't work with INHERITed table owners |