Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 4A06FAD7E2F for ; Sun, 17 Jun 2012 08:17:15 -0300 (ADT) Received: from mail-ey0-f174.google.com ([209.85.215.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SgDTk-0001b0-Qk for pgsql-hackers@postgresql.org; Sun, 17 Jun 2012 11:17:14 +0000 Received: by eaak11 with SMTP id k11so1288206eaa.19 for ; Sun, 17 Jun 2012 04:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc:content-type; bh=eurFZ21lZtE9TzZc8onSg+BgfUMH+8G3VcX3anLvyvs=; b=RPPPC+dX5sXC1/OuRPxCD+Nh/I+XwgU05zDWupIsT3fC6XNMTZ02x7xZoLNw739uGT 9jCxmpk5JgEoL0uJoI0UYEUaiJ8oHV/GxkZNbIz3Z1eHC0hDdoQ14lXo/g6twb6BfBNi 2pWGV7Eu+F1ZC9LXsNT2P/nklFqrSwpxHm+0DuC3sb1eWFUcaalsWTg8wic2prnQK9vK Kq7zUWP+q1KUmFnoEZ6ncdjZj9zmOQw4HkSD2dfvkWHKJ/zRf34POaXCE5RSr7I7CzAE 5f30YK86V2CogUjFmc3yU26DmcGU0Q1WSr2LoBXrXKbnHix/Wt7BnEuAA7E0Nac58QGS eitw== Received: by 10.14.101.144 with SMTP id b16mr2671765eeg.225.1339931819816; Sun, 17 Jun 2012 04:16:59 -0700 (PDT) MIME-Version: 1.0 From: Misa Simic Date: Sun, 17 Jun 2012 13:16:55 +0200 Message-ID: <-405928980722608358@unknownmsgid> Subject: Re: [PATCH] Support for foreign keys with arrays To: Jeff Davis , Gabriele Bartolini Cc: PostgreSQL-development , Marco Nenciarini Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201206/824 X-Sequence-Number: 209664 IMO, both approaches make sense... From temporal point no doubt, referencing should be contained by referenced table.... From other side could be useful if in master table are elements with simple data type, but for some set of elements there could be common properties in another table.. What today is doable on the way to in another table have the same data type and repeat the same properties for each element...That would be possible with Range data type, though it does not mean always data are in range so array is probably better option... However I am not sure from maintaining point of view, i,e when an element should be removed from that common properties set - but it is different topic :) Kind Regards, Misa Sent from my Windows Phone -----Original Message----- From: Jeff Davis Sent: 17/06/2012 08:55 To: Gabriele Bartolini Cc: PostgreSQL-development; Marco Nenciarini Subject: Re: [HACKERS] [PATCH] Support for foreign keys with arrays