Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id C27B21337B9C for ; Fri, 8 Oct 2010 17:42:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 63572-04 for ; Fri, 8 Oct 2010 20:42:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f46.google.com (mail-ew0-f46.google.com [209.85.215.46]) by mail.postgresql.org (Postfix) with ESMTP id D6DE11337B83 for ; Fri, 8 Oct 2010 17:42:29 -0300 (ADT) Received: by ewy23 with SMTP id 23so877482ewy.19 for ; Fri, 08 Oct 2010 13:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=uyqKOXLTGSH3pZ0KHqF60DvG1q139qMnF6yJWYCfXO8=; b=aD5Xr9LrKoJPF1r7IYC5HOkLVEXvVS8DsXtV53YcvQDNQT/+c8bCoWqUMzaYm7gEGX ptVnTlpIrHqx7WyYKsQE5IFX+vFi8AvEGt503kkpLKCCzwoZJAdaNAU7WG2mA3FWj+Sn 7Z7NyZYMBXfAPg0Nyr0IDFkWsF1QJ5n89Re/w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=SjhXv5Rn2jeGWCcHv+txuSwk4A8/6O+0xUWxIb/3Wm9MtuVvYOPZhlZ1IzsJQJURBk lfxf0xIQ0LclTI8mpzu+DCUqcIjhfOZ/qPobCCe+jsZr4LjfamjWFi6dazQrJK3LPPG9 eNc79+9TtJAJdwwX8jQ1BRyVZySgWEzC7evu8= MIME-Version: 1.0 Received: by 10.213.21.133 with SMTP id j5mr1920665ebb.95.1286570549268; Fri, 08 Oct 2010 13:42:29 -0700 (PDT) Received: by 10.14.37.79 with HTTP; Fri, 8 Oct 2010 13:42:29 -0700 (PDT) In-Reply-To: <4CAF79EB.1080606@gmail.com> References: <4CAF79EB.1080606@gmail.com> Date: Fri, 8 Oct 2010 16:42:29 -0400 Message-ID: Subject: Re: Duplicates Processing From: Gary Chambers To: Rob Sargent Cc: pgsql-sql@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201010/22 X-Sequence-Number: 34673 Rob, > Perhaps a trade off between nullable fields and redundant types. =A0If > your original table simply had a nullable column called > isReplacementFor, into which you place in the subsequent rows the id of > the first instance found. Am I misunderstanding you when you're suggesting a table like: part_number INTEGER is_replacement_for INTEGER references part_number value INTEGER wattage FLOAT8 ... -- Gary Chambers