Re: foreign keys

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: radek(dot)stachowiak(at)alter(dot)pl
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: foreign keys
Date: 2000-08-05 23:39:09
Message-ID: 200008052339.TAA07157@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> 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.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

  • foreign keys at 2000-08-05 22:05:44 from Radoslaw Stachowiak

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dale Walker 2000-08-06 04:24:12 Table Design: Timestamp vs time/date
Previous Message Radoslaw Stachowiak 2000-08-05 22:05:44 foreign keys