Re: setting up foreign keys

From: Chris <dmagick(at)gmail(dot)com>
To: Merlin Moncure <mmoncure(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 22:36:11
Message-ID: 44DBB4DB.6020605@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Merlin Moncure wrote:
> 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));

lol. Good point :)

*back to the hidey hole!*

--
Postgresql & php tutorials
http://www.designmagick.com/

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Carl Youngblood 2006-08-11 04:18:53 Re: Beginner optimization questions, esp. regarding Tsearch2
Previous Message Merlin Moncure 2006-08-10 20:55:54 Re: Slow access to PostgreSQL server