Re: pgsql: Enforce foreign key correctly during cross-partition updates - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Enforce foreign key correctly during cross-partition updates
Date
Msg-id 1596411.1647808192@sss.pgh.pa.us
Whole thread Raw
In response to pgsql: Enforce foreign key correctly during cross-partition updates  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: pgsql: Enforce foreign key correctly during cross-partition updates  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-committers
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Enforce foreign key correctly during cross-partition updates

skink is not too happy with this:

==2663594== VALGRINDERROR-BEGIN
==2663594== Conditional jump or move depends on uninitialised value(s)
==2663594==    at 0x421526: ExecUpdateAct (nodeModifyTable.c:1855)
==2663594==    by 0x4217A3: ExecUpdate (nodeModifyTable.c:2107)
==2663594==    by 0x423027: ExecModifyTable (nodeModifyTable.c:2905)
==2663594==    by 0x3F5CB8: ExecProcNodeFirst (execProcnode.c:463)
==2663594==    by 0x3EE739: ExecProcNode (executor.h:259)
==2663594==    by 0x3EE739: ExecutePlan (execMain.c:1633)
==2663594==    by 0x3EE90E: standard_ExecutorRun (execMain.c:362)
==2663594==    by 0x3EE9D4: ExecutorRun (execMain.c:306)
==2663594==    by 0x5B3628: ProcessQuery (pquery.c:160)
==2663594==    by 0x5B41E9: PortalRunMulti (pquery.c:1274)
==2663594==    by 0x5B47AD: PortalRun (pquery.c:788)
==2663594==    by 0x5B091D: exec_simple_query (postgres.c:1250)
==2663594==    by 0x5B281B: PostgresMain (postgres.c:4520)
==2663594==  Uninitialised value was created by a stack allocation
==2663594==    at 0x421433: ExecUpdateAct (nodeModifyTable.c:1773)
==2663594== 
==2663594== VALGRINDERROR-END

It reproduces easily for me under valgrind.  I guess
ExecCrossPartitionUpdate must be failing to set
inserted_tuple or insert_destrel.

            regards, tom lane



pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: psql: handle tab completion of timezone names after "SET TIMEZON
Next
From: Thomas Munro
Date:
Subject: pgsql: Log regression.diffs in 027_stream_regress.pl.