Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 3468C9F985C for ; Sun, 19 Aug 2007 12:23:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 69886-07 for ; Sun, 19 Aug 2007 12:23:15 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.187]) by postgresql.org (Postfix) with ESMTP id 474D69F983F for ; Sun, 19 Aug 2007 12:23:15 -0300 (ADT) Received: by rv-out-0910.google.com with SMTP id l15so782330rvb for ; Sun, 19 Aug 2007 08:23:14 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rIF5Hoxo9zulhOUY6ZQuVxz8yQRjFPV5VpsDnFF/LQFsKypC9xhL9OGfs1ShbAtq1du9REmCHFQGM8YPl64F9G7fPFgVjr02oFXOKUmI9S5eXbNzDHaKg75KbofO7z/atBCEsPQa8R4Y21SKskSwlQCHuLTkicg3idaB5CAaggM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=r5I6Y9YorKdYEBGy5icX5emuAvS6bweDjNYTbJUAYdlCvEO1oWrBnrhAJOSq9idEEs+qpHvsPASUBuQUF/r8fSuIyG1tGI2V53rwkTRZ0rVJXn7hdevPn48zwMh19J4E6lWqjsmYKWqOPqW8bA8garFn5iAEP+EJstL4fTr6oD0= Received: by 10.141.21.19 with SMTP id y19mr2161252rvi.1187536994078; Sun, 19 Aug 2007 08:23:14 -0700 (PDT) Received: by 10.141.18.12 with HTTP; Sun, 19 Aug 2007 08:23:14 -0700 (PDT) Message-ID: Date: Sun, 19 Aug 2007 17:23:14 +0200 From: "mark overmeer" To: pgsql-performance@postgresql.org Subject: Re: schema design question In-Reply-To: <1187533454.4416.0.camel@aleph.wmmi.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_41188_22014333.1187536994066" References: <1187533454.4416.0.camel@aleph.wmmi.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/195 X-Sequence-Number: 26325 ------=_Part_41188_22014333.1187536994066 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Adam, Thanks for the fast reply. What should inherit from what? Class A (e.g. 'todo item') is certainly not derived from property X (e.g. 'startdate'). Class A version 2 has different properties (some are removed, others are added). Can you elaborate / say I'm wrong / give an example ? Thanks, Mark 2007/8/19, Adam Tauno Williams : > > > > Maybe not completely the wright place to ask but... I have this schema > > design question (db is postgres of course). I have a couple of classes > > with attributes. The only goal is to search the object that I want to > > find (which is stored on the harddrive). > > I have hundreds of classes that are similar but not the same. They all > > have attributes/properties (type is probably String), e.g. (in pseudo > > code): > > Use table inheritance. > > -- > Adam Tauno Williams, Network & Systems Administrator > Consultant - http://www.whitemiceconsulting.com > Developer - http://www.opengroupware.org > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings > ------=_Part_41188_22014333.1187536994066 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Adam,

Thanks for the fast reply. What should inherit from what? Class A (e.g. 'todo item') is certainly not derived from property X (e.g. 'startdate'). Class A version 2 has different properties (some are removed, others are added). Can you elaborate / say I'm wrong / give an example ? Thanks,

Mark


2007/8/19, Adam Tauno Williams <adamtaunowilliams@gmail.com>:

> Maybe not completely the wright place to ask but... I have this schema
> design question (db is postgres of course). I have a couple of classes
> with attributes. The only goal is to search the object that I want to
> find (which is stored on the harddrive).
> I have hundreds of classes that are similar but not the same. They all
> have attributes/properties (type is probably String), e.g. (in pseudo
> code):

Use table inheritance.

--
Adam Tauno Williams, Network & Systems Administrator
Consultant - http://www.whitemiceconsulting.com
Developer - http://www.opengroupware.org


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

------=_Part_41188_22014333.1187536994066--