Shouldn't validateForeignKeyConstraint() reset memory context?

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Shouldn't validateForeignKeyConstraint() reset memory context?
Date: 2018-07-11 18:56:28
Message-ID: 20180711185628.mrvl46bjgk2uxoki@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2018-07-11 19:13:30 Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints
Previous Message Nico Williams 2018-07-11 18:41:12 Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints