Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f2G4Iux11619 for ; Thu, 15 Mar 2001 23:18:56 -0500 (EST) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 25728; Thu, 15 Mar 2001 20:18:52 -0800 From: "Josh Berkus" Subject: Re: Re: Normalization is always good? To: jkakar@expressus.com, Josh Berkus Cc: sqllist X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Thu, 15 Mar 2001 20:18:52 -0800 Message-ID: In-Reply-To: <20010315152819.B18169@expressus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200103/329 X-Sequence-Number: 1993 Jamu, > Polymorphic sub-tables? =) Do you mean using, for example, one user > table that stores different types of users and has some fields > specific to only some kinds of users and other fields that are shared > by all users? Nope. What you described is a "not normalized" table. ;-) One project contains a Notes table. However, I want it to be configurable to what records notes apply ... that is, my application has an admin option that allows you to configure the system so that there are or aren't Notes for Client Addresses, for example. TO do this, I created a sequence that is generally available ('universal_sq'), and set 7-9 tables to automatically increment a value from the 'universal_sq' (column 'usq') for each record. The Notes table, thus, effectively has the 'usq' as a foriegn key for 2 to 7 other tables, depending on user configuration. The wonderful PostgreSQL sequence handler makes this possible. Thanks, Tom & team! I've done this with a couple of other tables. Not relationally correct, but I can't find anything wrong with the idea. > Couldn't find the server... I wonder if it's still there. I believe that Christof posted the correct URL. -Josh Berkus ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco