Shouldn't validateForeignKeyConstraint() reset memory context? - Mailing list pgsql-hackers

From Andres Freund
Subject Shouldn't validateForeignKeyConstraint() reset memory context?
Date
Msg-id 20180711185628.mrvl46bjgk2uxoki@alap3.anarazel.de
Whole thread Raw
Responses Re: Shouldn't validateForeignKeyConstraint() reset memory context?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Hi,

while looking at the pluggable storage patch I noticed that
validateForeignKeyConstraint() calls RI_FKey_check() for each row
without resetting a memory / expression context.  There's not too much
leakage in the called code, but there's some I think.

Greetings,

Andres Freund


pgsql-hackers by date:

Previous
From: Nico Williams
Date:
Subject: Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints
Next
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints