Skip site navigation (1) Skip section navigation (2)

Re: Massive Inserts Strategies

From: Markus Schaber <schabi(at)logix-tt(dot)com>
To: ashah <ashah(at)opuspro(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Massive Inserts Strategies
Date: 2006-03-28 16:18:44
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Hi, ashah,

ashah wrote:
> I tried this solution, but ran into following problem.
> The temp_table has columns (col1, col2, col3).
> The original_table has columns (col0, col1, col2, col3)

> Now the extra col0 on the original_table is the unique generated ID by
> the database.

INSERT INTO original_table (col1, col2, col3) SELECT col1, col2, col3
FROM temp_table WHERE ...


Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU!

In response to

pgsql-performance by date

Next:From: Steinar H. GundersonDate: 2006-03-28 16:29:08
Subject: Re: simple join uses indexes, very slow
Previous:From: Dave DutcherDate: 2006-03-28 16:18:25
Subject: Re: simple join uses indexes, very slow

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group