Re: Reducing memory usage of insert into select operations? [Solved] - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Reducing memory usage of insert into select operations? [Solved]
Date
Msg-id 20080719210330.GB5754@alvh.no-ip.org
Whole thread Raw
In response to Re: Reducing memory usage of insert into select operations? [Solved]  (Francisco Reyes <lists@stringsutils.com>)
List 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

pgsql-general by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: Returns cursor?
Next
From: Francisco Reyes
Date:
Subject: Re: Reducing memory usage of insert into select operations? [Solved]