Fix a typo in rewriteHandler.c

From: "Sho Kato (Fujitsu)" <kato-sho(at)fujitsu(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Fix a typo in rewriteHandler.c
Date: 2023-06-15 08:07:19
Message-ID: TYCPR01MB68499042A33BC32241193AAF9F5BA@TYCPR01MB6849.jpnprd01.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I've attached the patch for the following rewriteTargetView comments.

Assert(parsetree->resultRelation == new_rt_index);

/*
* For INSERT/UPDATE we must also update resnos in the targetlist to refer
* to columns of the base relation, since those indicate the target
* columns to be affected.
*
* Note that this destroys the resno ordering of the targetlist, but that
* will be fixed when we recurse through rewriteQuery, which will invoke
* rewriteTargetListIU again on the updated targetlist.
*/
if (parsetree->commandType != CMD_DELETE)
{
foreach(lc, parsetree->targetList)

s/rewriteQuery/RewriteQuery

regards,
Sho Kato

Attachment Content-Type Size
fix_typo_rewriteHandler.c text/plain 652 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vladimir Churyukin 2023-06-15 08:16:31 Re: Bypassing shared_buffers
Previous Message Masahiko Sawada 2023-06-15 08:06:56 Re: Replace (GUC_UNIT_MEMORY | GUC_UNIT_TIME) with GUC_UNIT in guc.c