Re: setting up foreign keys

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: Chris <dmagick(at)gmail(dot)com>
Cc: "Sue Fitt" <sue(at)inf(dot)ed(dot)ac(dot)uk>, pgsql-performance(at)postgresql(dot)org
Subject: Re: setting up foreign keys
Date: 2006-08-10 13:33:07
Message-ID: b42b73150608100633x2238b4bdodfd04d51434195c0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 8/10/06, Chris <dmagick(at)gmail(dot)com> wrote:
> Sue Fitt wrote:
> > Thanks Chris and Chris, you've solved it.
> >
> > I had a gui open that connects to the database. It was doing nothing
> > (and not preventing me adding to or altering headwords_core via psql),
> > but having closed it the table is instantly created. Weird.
> >
> > BTW, referencing the same column twice is deliberate, it's a
> > cross-reference.
>
> The same column and the same table?
>
> Same column different table I could understand but not the same column &
> table ;)

create table color(color text);

create table person(eye_color text references color(color), hair_color
text references color(color));

;)
merlin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Luke Lonergan 2006-08-10 15:15:38 Re: Postgresql Performance on an HP DL385 and
Previous Message Jeff Trout 2006-08-10 13:16:23 Re: most bang for buck with ~ $20,000