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

Re: Create Primary Key + Massive Copy's?

From: Webb Sprague <wsprague100(at)yahoo(dot)com>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Create Primary Key + Massive Copy's?
Date: 2000-08-30 03:52:15
Message-ID: 20000830035215.11462.qmail@web802.mail.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-sql
This is my next approach--I got rid of all indexes and
PK's, and then created an index with unique after
everything is added.  Wish me luck.

W
--- Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
wrote:
> 
> We don't currently support the SQL syntax for adding
> a PK to a table.  However, if you have the columns
> as NOT NULL already, adding a unique index to the
> columns in question has the same general effect.
> 
> Stephan Szabo
> sszabo(at)bigpanda(dot)com
> 
> On Tue, 29 Aug 2000, Webb Sprague wrote:
> 
> > Apropos of my last question:
> > 
> > Is there syntax to create a primary key after the
> > table has been defined and populated?  I think I
> could
> > speed things up quite a bit by not having any
> indexes
> > at all when I do my mass copies.
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

pgsql-sql by date

Next:From: D'Arcy J.M. CainDate: 2000-08-30 11:42:48
Subject: Re: Create Primary Key?
Previous:From: Stephan SzaboDate: 2000-08-30 01:55:42
Subject: Re: Optimizing huge inserts/copy's

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