pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rosser Schwarz <rosser.schwarz@gmail.com>
To: Goulet, Dick <dgoulet@vicr.com>
Cc: pwbyrne@hotmail.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Porting from MS SQL Server to PostGres
Date: Fri, 24 Sep 2004 15:57:46 -0500
Message-ID: <37d451f704092413573a5ea4e0@mail.gmail.com> (raw)
In-Reply-To: <4001DEAF7DF9BD498B58B45051FBEA650146C760@25exch1.vicorpower.vicr.com>
References: <4001DEAF7DF9BD498B58B45051FBEA650146C760@25exch1.vicorpower.vicr.com>

while you weren't looking, Goulet, Dick wrote:

>  I'd precreate all of the tables/indexes and then move the data...

If you have a lot of data, it's probably better to punt on creating
the indices until after you've moved the data.  Bulk populating
indexed tables, particularly if the table has more than just the
primary key index, can be awfully slow.  At one point, we tried
dumping several million tuples into a table with a dozen-odd indices. 
Only did that once.

/rls

-- 
:wq



view thread (3+ messages)

Message-ID: <37d451f704092413573a5ea4e0@mail.gmail.com>
Permalink:  ../37d451f704092413573a5ea4e0@mail.gmail.com/
Also on:    postgresql.org/message-id/37d451f704092413573a5ea4e0@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rosser.schwarz@gmail.com, dgoulet@vicr.com, pwbyrne@hotmail.com
  Subject: Re: Porting from MS SQL Server to PostGres
  In-Reply-To: <37d451f704092413573a5ea4e0@mail.gmail.com>
  References: <4001DEAF7DF9BD498B58B45051FBEA650146C760@25exch1.vicorpower.vicr.com> <37d451f704092413573a5ea4e0@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox