Re: Huge memory consumption on partitioned table with FKs

From: Tatsuro Yamada <tatsuro(dot)yamada(dot)tf(at)nttcom(dot)co(dot)jp>
To: Amit Langote <amitlangote09(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, keisuke kuroda <keisuke(dot)kuroda(dot)3862(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, tatsuhito(dot)kasahara(dot)rd(at)hco(dot)ntt(dot)co(dot)jp
Subject: Re: Huge memory consumption on partitioned table with FKs
Date: 2021-03-11 06:10:04
Message-ID: fc451a2f-93db-2c19-d7d3-11c7bfc4950a@nttcom.co.jp_1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2021/03/11 9:39, Amit Langote wrote:
> On Thu, Mar 11, 2021 at 4:25 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Amit Langote <amitlangote09(at)gmail(dot)com> writes:
>>> On Wed, Mar 10, 2021 at 8:37 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>>> Hmm. So, the key point is that the values coming from the partitioned
>>>> child table are injected into the test query as parameters, not as
>>>> column references, thus it doesn't matter *to the test query* what
>>>> numbers the referencing columns have in that child. We just have to
>>>> be sure we pass the right parameter values.
>>
>>> Right.
>>
>> I did some cosmetic fooling with this (mostly, rewriting the comments
>> YA time) and pushed it.
>
> Perfect. Thanks for your time on this.

Thanks for fixing the problem! :-D

Regards,
Tatsuro Yamada

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2021-03-11 06:33:52 Re: shared-memory based stats collector
Previous Message Kyotaro Horiguchi 2021-03-11 04:42:27 Re: shared-memory based stats collector