X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3B74E9FB269 for ; Thu, 10 Aug 2006 10:33:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 17178-09 for ; Thu, 10 Aug 2006 10:33:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by postgresql.org (Postfix) with ESMTP id 09BEA9FA502 for ; Thu, 10 Aug 2006 10:33:12 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id n25so768793pyg for ; Thu, 10 Aug 2006 06:33:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Cp0GoVddNENltSsGqND8Zq0jMeAryVB5BFin7/MzcPwymkoOCQnAGHbeobScGmHB8LSXGkjqIMt5Tb4P2lXyMqcbJAdLB0lHbldcMUErq8lG3aahn1u1b5H0du+sqdMJdTup6hN/LWUXKGcg1pNxx3a4nEnrAAK2gBps5nUieAE= Received: by 10.65.95.20 with SMTP id x20mr2310799qbl; Thu, 10 Aug 2006 06:33:10 -0700 (PDT) Received: by 10.65.139.10 with HTTP; Thu, 10 Aug 2006 06:33:07 -0700 (PDT) Message-ID: Date: Thu, 10 Aug 2006 09:33:07 -0400 From: "Merlin Moncure" To: Chris Subject: Re: setting up foreign keys Cc: "Sue Fitt" , pgsql-performance@postgresql.org In-Reply-To: <44DAF8B9.2080000@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44DAE8CF.1030107@inf.ed.ac.uk> <44DAEB04.9050306@gmail.com> <44DAF6B7.1090800@inf.ed.ac.uk> <44DAF8B9.2080000@gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.395 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/185 X-Sequence-Number: 20370 On 8/10/06, 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 ;) create table color(color text); create table person(eye_color text references color(color), hair_color text references color(color)); ;) merlin