X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7F2585E4893 for ; Sun, 5 Sep 2004 18:51:26 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28340-04 for ; Sun, 5 Sep 2004 17:51:24 +0000 (GMT) Received: from boutiquenumerique.com (gailleton-2-82-67-9-10.fbx.proxad.net [82.67.9.10]) by svr1.postgresql.org (Postfix) with ESMTP id B6A4F5E48BF for ; Sun, 5 Sep 2004 18:51:23 +0100 (BST) Received: (qmail 7396 invoked from network); 5 Sep 2004 19:51:27 +0200 Received: from unknown (HELO musicbox) (192.168.0.2) by gailleton-2-82-67-9-10.fbx.proxad.net with SMTP; 5 Sep 2004 19:51:27 +0200 To: pgsql-sql@postgresql.org Subject: Re: Storing properties in a logical way. References: <413BDCB7.10009@nm.ru> Message-ID: Date: Sun, 05 Sep 2004 19:51:44 +0200 From: =?iso-8859-15?Q?Pierre-Fr=E9d=E9ric_Caillaud?= Organization: =?iso-8859-15?Q?La_Boutique_Num=E9rique?= Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In-Reply-To: <413BDCB7.10009@nm.ru> User-Agent: Opera M2/7.53 (Linux, build 737) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/32 X-Sequence-Number: 18878 > But after looking closely at the list of a possible properties, i found > out that some of them depend on others. For example, if item is a > PDF document, it can have an index. But a document can also have an > index with links. Logically, a properties like 'index with links' > don't belong to the verification table - they look like a kind of > a composite field - 'index with links' is not a stand-alone property, > but it also implies that an item also has an 'index' property. > On the other hand, it is impossible to decouple 'index' from > 'with links', because the second part won't have any meaning without > the first part. You mean your properties would be better organized as a tree ? Or is it even more complicated than that ? If it's a tree, look at the ways of storing a tree in a table.