From: Chris <dmagick@gmail.com>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Sue Fitt <sue@inf.ed.ac.uk>
Cc: pgsql-performance@postgresql.org
Subject: Re: setting up foreign keys
Date: Fri, 11 Aug 2006 08:36:11 +1000
Message-ID: <44DBB4DB.6020605@gmail.com> (raw)
In-Reply-To: <b42b73150608100633x2238b4bdodfd04d51434195c0@mail.gmail.com>
References: <44DAE8CF.1030107@inf.ed.ac.uk>
<44DAEB04.9050306@gmail.com>
<44DAF6B7.1090800@inf.ed.ac.uk>
<44DAF8B9.2080000@gmail.com>
<b42b73150608100633x2238b4bdodfd04d51434195c0@mail.gmail.com>
Merlin Moncure wrote:
> On 8/10/06, Chris <dmagick@gmail.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/
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: dmagick@gmail.com, mmoncure@gmail.com, sue@inf.ed.ac.uk
Subject: Re: setting up foreign keys
In-Reply-To: <44DBB4DB.6020605@gmail.com>
* 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