Re: foreign keys

From: <vectro(at)pipeline(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: radek(dot)stachowiak(at)alter(dot)pl, pgsql-general(at)postgresql(dot)org
Subject: Re: foreign keys
Date: 2000-08-06 18:46:10
Message-ID: Pine.LNX.4.10.10008061145520.1465-100000@nemo.house
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 5 Aug 2000, Bruce Momjian wrote:

> > Not to mentions fact that in a few places in docs it's shown as a method
> > for copying table "SELECT... INTO" which does not "take" keys with it
> > leading to database knwoledge loss.
>
> That is a good point. SELECT INTO doesn't support constraints.
> Unfortunately, I don't really know a way around that. The only solution
> is CREATE TABLE and then INSERT INTO ... SELECT.

Argh, that's annoying.

Is there a way to CREATE TABLE, getting the schema from another table? :o

Ian

In response to

Responses

  • at 2000-08-07 09:59:00 from Morten W. Petersen

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2000-08-06 21:26:17 Re: foreign keys
Previous Message Bruce Momjian 2000-08-06 17:51:28 Re: foreign keys