Re: Creating foreign key on partitioned table is too slow - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Creating foreign key on partitioned table is too slow
Date
Msg-id 20191024184857.GA14525@alvherre.pgsql
Whole thread Raw
In response to Creating foreign key on partitioned table is too slow  ("kato-sho@fujitsu.com" <kato-sho@fujitsu.com>)
Responses Re: Creating foreign key on partitioned table is too slow
List pgsql-hackers
On 2019-Oct-23, kato-sho@fujitsu.com wrote:

> Hello
> 
> To benchmark with tpcb model, I tried to create a foreign key in the partitioned history table, but backend process
killedby OOM.
 
> the number of partitions is 8192. I tried in master(commit: ad4b7aeb84).
> 
> I did the same thing in another server which has 200GB memory, but creating foreign key did not end in 24 hours.

Thanks for reporting.  It sounds like there must be a memory leak here.
I am fairly pressed for time at present so I won't be able to
investigate this until, at least, mid November.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: James Coleman
Date:
Subject: Re: Consider low startup cost in add_partial_path
Next
From: Alex Adriaanse
Date:
Subject: TOAST corruption in standby database