Re: Reducing memory usage of insert into select operations? [Solved]

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Francisco Reyes <lists(at)stringsutils(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, dev(at)archonet(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Reducing memory usage of insert into select operations? [Solved]
Date: 2008-07-19 21:03:30
Message-ID: 20080719210330.GB5754@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Francisco Reyes wrote:

> I had the foreign key in the master table instead of the children.
> Deleted RI from master table and put into the inherited partitions.
> My whole 230 million rows merged in about an hour!

Heh -- but are the FKs now checked? Try inserting something that
violates the constraints and see if they are rejected.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Reyes 2008-07-19 23:39:36 Re: Reducing memory usage of insert into select operations? [Solved]
Previous Message Pavel Stehule 2008-07-19 19:46:29 Re: Returns cursor?