From: darcy@druid.net
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: Webb Sprague <wsprague100@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Create Primary Key?
Date: Wed, 30 Aug 2000 07:42:48 -0400 (EDT)
Message-ID: <m13U6GW-000AWSC@druid.net> (raw)
In-Reply-To: <Pine.BSF.4.10.10008291808340.57603-100000@megazone23.bigpanda.com>
Thus spake Stephan Szabo
> 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.
Except for interfaces such as PyGreSQL that recognize the primary key
and use it.
> > 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.
Why not just use the copy function? That's what it's for.
--
D'Arcy J.M. Cain <darcy@{druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
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-sql@postgresql.org
Cc: darcy@druid.net, sszabo@megazone23.bigpanda.com, wsprague100@yahoo.com
Subject: Re: Create Primary Key?
In-Reply-To: <m13U6GW-000AWSC@druid.net>
References: <Pine.BSF.4.10.10008291808340.57603-100000@megazone23.bigpanda.com> <m13U6GW-000AWSC@druid.net>
* 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