Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 33AD26321EB for ; Fri, 11 Dec 2009 04:40:03 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 71346-09 for ; Fri, 11 Dec 2009 08:39:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ananke.wxnz.net (ananke.wxnz.net [58.28.4.122]) by mail.postgresql.org (Postfix) with ESMTP id 4F80863237F for ; Fri, 11 Dec 2009 04:39:51 -0400 (AST) Received: from gonzo (ip-118-90-139-62.xdsl.xnet.co.nz [118.90.139.62]) by ananke.wxnz.net (Postfix) with ESMTP id 14369170500 for ; Fri, 11 Dec 2009 21:39:48 +1300 (NZDT) Received: from news by gonzo with local (Exim 4.69) (envelope-from ) id 1NJ12R-0000hU-Pl for pgsql-sql@postgresql.org; Fri, 11 Dec 2009 21:39:47 +1300 To: pgsql-sql@postgresql.org Path: not-for-mail From: Jasen Betts Newsgroups: gmane.comp.db.postgresql.sql Subject: Re: constants in 2-column foreign keys or how to design a storage for text-groups ? Date: 11 Dec 2009 08:39:47 GMT Organization: Dis (not Dat) Organisation Lines: 15 Message-ID: References: <4B1EED62.6050600@gmx.net> NNTP-Posting-Host: localhost Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: reversiblemaps.ath.cx 1260520787 2661 127.0.0.1 (11 Dec 2009 08:39:47 GMT) X-Face: ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s; a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W; (T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q; 8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^ User-Agent: slrn/pre1.0.0-2 (Linux) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.376 tagged_above=-10 required=5 tests=AWL=-0.377, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200912/33 X-Sequence-Number: 33471 On 2009-12-09, Andreas wrote: > Hi, ... > stupid example: > --------------- > color: red, green, blue > size: tiny, little, big, giant > structure: hard, soft, floppy > > How would I solve the rather common text storage issue? have you considered using enumerated types instead?