X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id AD5D49DCB67 for ; Thu, 9 Feb 2006 16:41:16 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 33209-01 for ; Thu, 9 Feb 2006 16:41:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 8337F9DCAC3 for ; Thu, 9 Feb 2006 16:41:14 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id A82493093C; Thu, 9 Feb 2006 21:41:15 +0100 (MET) From: "BigSmoke" X-Newsgroups: pgsql.sql Subject: Re: unique constraint instead of primary key? what Date: 9 Feb 2006 12:41:09 -0800 Organization: http://groups.google.com Lines: 5 Message-ID: <1139517669.040239.177990@o13g2000cwo.googlegroups.com> References: <20060208210455.5d6f5bf9.gry@ll.mit.edu> <1139502179.764894.35960@o13g2000cwo.googlegroups.com> <20060209151018.58bec92d.gry@ll.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com In-Reply-To: <20060209151018.58bec92d.gry@ll.mit.edu> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=212.204.130.113; posting-account=0WN9Mw0AAAChM4mno36wWr-RrABvnbDI To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200602/109 X-Sequence-Number: 24119 I mean that you can't easily base a foreign key constraint on a field that is not NOT NULL UNIQUE. - Rowan