Re: Huge memory consumption on partitioned table with FKs
Amit Langote <amitlangote09@gmail.com>
From: Amit Langote <amitlangote09@gmail.com>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>,
keisuke kuroda <keisuke.kuroda.3862@gmail.com>, Tatsuro Yamada <tatsuro.yamada.tf@nttcom.co.jp>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
tatsuhito.kasahara.rd@hco.ntt.co.jp
Date: 2020-12-07T14:01:47Z
Lists: pgsql-hackers
On Fri, Dec 4, 2020 at 12:05 PM Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote: > > Also, the comment that was in RI_ConstraintInfo now appears in > > RI_ConstraintParam, and the new struct (RI_ConstraintInfo) is now > > undocumented. What is the relationship between those two structs? I > > see that they have pointers to each other, but I think the relationship > > should be documented more clearly. > > I'm not sure the footprint of this patch worth doing but here is a bit > more polished version. I noticed that the foreign_key test fails and it may have to do with the fact that a partition's param info remains attached to the parent's RI_ConstraintInfo even after it's detached from the parent table using DETACH PARTITION. -- Amit Langote EDB: http://www.enterprisedb.com
Commits
-
Avoid creating duplicate cached plans for inherited FK constraints.
- c3ffe3486368 14.0 landed