pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Merlin Moncure <mmoncure@gmail.com>
To: Chris <dmagick@gmail.com>
Cc: Sue Fitt <sue@inf.ed.ac.uk>
Cc: pgsql-performance@postgresql.org
Subject: Re: setting up foreign keys
Date: Thu, 10 Aug 2006 09:33:07 -0400
Message-ID: <b42b73150608100633x2238b4bdodfd04d51434195c0@mail.gmail.com> (raw)
In-Reply-To: <44DAF8B9.2080000@gmail.com>
References: <44DAE8CF.1030107@inf.ed.ac.uk>
	<44DAEB04.9050306@gmail.com>
	<44DAF6B7.1090800@inf.ed.ac.uk>
	<44DAF8B9.2080000@gmail.com>

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));

;)
merlin



view thread (12+ messages)  latest in thread

Message-ID: <b42b73150608100633x2238b4bdodfd04d51434195c0@mail.gmail.com>
Permalink:  ../b42b73150608100633x2238b4bdodfd04d51434195c0@mail.gmail.com/
Also on:    postgresql.org/message-id/b42b73150608100633x2238b4bdodfd04d51434195c0@mail.gmail.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: mmoncure@gmail.com, dmagick@gmail.com, sue@inf.ed.ac.uk
  Subject: Re: setting up foreign keys
  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>

* 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