Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f5tcx-0003v1-Fc for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Apr 2018 13:48:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f5tcw-0007fQ-B6 for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Apr 2018 13:48:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f5tcw-0007fG-0I for pgsql-hackers@lists.postgresql.org; Tue, 10 Apr 2018 13:48:02 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f5tcp-00007I-17 for pgsql-hackers@postgresql.org; Tue, 10 Apr 2018 13:48:00 +0000 Received: from Davids-iMac.local (c-69-140-124-204.hsd1.va.comcast.net [69.140.124.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id E933D54669; Tue, 10 Apr 2018 13:47:53 +0000 (UTC) Subject: Re: [HACKERS] GSoC 2017: Foreign Key Arrays To: Mark Rofail Cc: Alvaro Herrera , Andreas Karlsson , Alexander Korotkov , Erik Rijkers , =?UTF-8?B?SGFucy1Kw7xyZ2VuIFNjaMO2bmln?= , Robert Haas , Stephen Frost , Tom Lane , pgsql-hackers References: <20180307104316.2coykd7mbvn3f7fn@alvherre.pgsql> <25596ed6-cbcf-9f6c-1687-761d6243e0ed@pgmasters.net> From: David Steele Openpgp: preference=signencrypt Autocrypt: addr=david@pgm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7HcMHnSPSNJkXt/Vi ozlcrSnkVXzCXvH9DHrIpgenp8btsJ2XyjSdrEu4jAqYeirW+3qRABEBAAHCwV8EGAEIAAkF AlSheh0CGwwACgkQn830JKJznPNmERAApYaQK6i9F6hM2RUD/PqQC45WmzOXK9bDSS9hdk4p Nc5jSW2+FkcMFe1XFG2NyGf1v5KBPxuDTQp35PIwRsL59xNmPICu0ae6zmCPUpxbMIEzb/VU wXqeuNp3cRVll06goDt5w+2LlAtBrxuDjiWxby9LH+vsIUMLWYu+M50pdtOcXOsO1+zyfs3w U6xRZ3PaFDKO1cB68okDFG/cFHnYfY5aETV7LgVBHEOQLwL01U01QC/iqY/aNO4iUH/+PBc0 R6mYlP7IqDQOQVTJ0dXP365thl0Q7c9e2JQSS9wuSv2EEiR//nnZREtLyrQNLwsXE8UFBDe7 uA8Lm2ldmQYpHHKAcorGVTHYJaaus2LjH8tZ1i4RGg4hKMJSHil/5C+Ghl+PmcACVeGaxB0c mJ8+0jyWDkLCDMAXJJyvXRWIONTAxVt5kKg1/iMAq1IQYNd66agnmgxdSvKLPUo0JJ5fhQJp 2bqDDTrINTZg+Rub2HeoOMxYJsMypK+6aY4iVlm2Z7A9SgyQDjGAXzD9+XaezNFeXxfPbjo6 46qA9SycdYhiwaTcTQakiLkZWRIkSjGQwNCK9NktE1fYnXfR0+WaWFduQ4BfM5uta1bt8esB /mLEjVYS9RRAWZ/untJrR9JYGTC4Mu6tcLGZD7385yX3TNM1iaIUGxlKkHHCZCnILyo= Message-ID: <863bfcba-82fe-d379-30dc-ae5376a99c06@pgmasters.net> Date: Tue, 10 Apr 2018 09:47:53 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Mark, On 3/26/18 4:50 PM, Mark Rofail wrote: > On 3/7/18 5:43 AM, Alvaro Herrera wrote: > > I searched for the new GIN operator so that I > could brush it up for commit ahead of the rest -- only to find out that > it was eviscerated from the patch between v5 and v5.1. > > The latest version of the patch which contained the new GIN operator is > version  `*Array-ELEMENT-foreign-key-v6.patch > *` > which works fine and passed all the regression tests at the time > (2018-01-21). We abandoned the GIN operator since it couldn't follow the > same logic as the rest of GIN operators use since it operates on a Datum > not an array. Not because of any error. > > just as Andreas said > > On Wed, Jan 31, 2018 at 1:52 AM, Andreas Karlsson wrote: > > The issue I see is that > ginqueryarrayextract() needs to make a copy of the search key but to do > so it needs to know the type of anyelement (to know if it needs to > detoast, etc). But there is as far as I can tell no way to check the > type of anyelement in this context. > >   > If there is any way to  obtain a copy of the datum I would be more than > happy to integrate the GIN operator to the patch. Since you have expressed a willingness to continue work on this patch I have moved it to the next CF in Waiting on Author state. You should produce a new version by then that addresses Alvaro's concerns and I imagine that will require quite a bit of discussion and work. Everyone is a bit fatigued at the moment so it would best to hold off on that for a while. Regards, -- -David david@pgmasters.net