Re: Shouldn't validateForeignKeyConstraint() reset memory context?

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Shouldn't validateForeignKeyConstraint() reset memory context?
Date: 2019-04-08 05:53:39
Message-ID: 20190408055339.5u72z6thhrti6ksg@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2018-07-11 11:56:28 -0700, Andres Freund wrote:
> 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.

This has been fixed since. See https://www.postgresql.org/message-id/20190408055302.qirqcbnhjxwsxq3m%40alap3.anarazel.de

- Andres

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2019-04-08 05:54:40 Re: tableam scan-API patch broke foreign key validation
Previous Message Andres Freund 2019-04-08 05:53:02 Re: Assert failure when validating foreign keys