pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sue Fitt <sue@inf.ed.ac.uk>
To: Chris <dmagick@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: setting up foreign keys
Date: Thu, 10 Aug 2006 10:20:45 +0100
Message-ID: <44DAFA6D.4070606@inf.ed.ac.uk> (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>

Well they don't necessarily have the same value!

It's a dictionary with cross-referenced words, e.g. 'bring' and 
'brought' are both headwords in the dictionary, but 'brought' is 
cross-referenced to 'bring'. So, the table stores the information (using 
integer id's rather than words) that
    bring: bring
    brought: see bring
    sing: sing
    sang: see sing
etc.

Sue

Chris 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 ;)
>
> I'm sure there's a reason for it though :)
>



view thread (12+ messages)  latest in thread

Message-ID: <44DAFA6D.4070606@inf.ed.ac.uk>
Permalink:  ../44DAFA6D.4070606@inf.ed.ac.uk/
Also on:    postgresql.org/message-id/44DAFA6D.4070606@inf.ed.ac.uk

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sue@inf.ed.ac.uk, dmagick@gmail.com
  Subject: Re: setting up foreign keys
  In-Reply-To: <44DAFA6D.4070606@inf.ed.ac.uk>

* 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