Re: Huge memory consumption on partitioned table with FKs
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Corey Huinker <corey.huinker@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>,
Kyotaro Horiguchi <horikyota.ntt@gmail.com>,
keisuke.kuroda.3862@gmail.com, tatsuro.yamada.tf@nttcom.co.jp,
pgsql-hackers@lists.postgresql.org, amitlangote09@gmail.com,
tatsuhito.kasahara.rd@hco.ntt.co.jp
Date: 2020-12-01T02:48:52Z
Lists: pgsql-hackers
Corey Huinker <corey.huinker@gmail.com> writes: > Given that we're already looking at these checks, I was wondering if this > might be the time to consider implementing these checks by directly > scanning the constraint index. Yeah, maybe. Certainly ri_triggers is putting a huge amount of effort into working around the SPI/parser/planner layer, to not a lot of gain. However, it's not clear to me that that line of thought will work well for the statement-level-trigger approach. In that case you might be dealing with enough tuples to make a different plan advisable. regards, tom lane
Commits
-
Avoid creating duplicate cached plans for inherited FK constraints.
- c3ffe3486368 14.0 landed