Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj8L0-0006wk-Cy for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Mar 2016 16:42:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aj8Kz-0006vU-W5 for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Mar 2016 16:42:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aj8Je-0004ud-JI for pgsql-hackers@postgresql.org; Thu, 24 Mar 2016 16:40:58 +0000 Received: from mtaout003-public.msg.strl.va.charter.net ([68.114.190.28]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj8Ja-0001XM-5V for pgsql-hackers@postgresql.org; Thu, 24 Mar 2016 16:40:58 +0000 Received: from impout002 ([68.114.189.17]) by mtaout003.msg.strl.va.charter.net (InterMail vM.9.00.021.00 201-2473-182) with ESMTP id <20160324164049.CQOF7221.mtaout003.msg.strl.va.charter.net@impout002>; Thu, 24 Mar 2016 11:40:49 -0500 Received: from pc1 ([97.87.188.16]) by impout002 with charter.net id Zsgo1s00N0Mfu3D01sgpjF; Thu, 24 Mar 2016 11:40:49 -0500 X-Authority-Analysis: v=2.1 cv=Fba5xfO6 c=1 sm=1 tr=0 a=Ay788ph35uAhBIV2K373vw==:117 a=Ay788ph35uAhBIV2K373vw==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=N659UExz7-8A:10 a=D3WM_OB9AAAA:8 a=QMQQx73PFGFvxtmYquUA:9 a=pILNOxqGKmIA:10 a=S1ZuUgkT56EA:10 a=OGjxhygxLqYA:10 a=gA6IeH5FQcgA:10 a=NWVoK91CQyQA:10 Message-ID: <95B821E794D949A4B389C6A3F2F7AF16@pc1> From: "Matt Wilmas" To: "Andrew Dunstan" , "PostgreSQL-development" References: <56EA8A71.8060107@dunslane.net> Subject: Re: btree_gin and btree_gist for enums Date: Thu, 24 Mar 2016 11:40:48 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Pg-Spam-Score: -0.2 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hi Andrew, all, First message here! I didn't get around to sending an intro/"thank you all" e-mail yet, and a small performance (?) patch+idea(s)... (CPU stuff, since I don't otherwise know much about PG internals.) Anyway... ----- Original Message ----- From: "Andrew Dunstan" Sent: Thursday, March 17, 2016 > Here is a patch to add enum support to btree_gin and btree_gist. I > didn't include distance operations, as I didn't think it terribly > important, and there isn't a simple way to compute it sanely and > efficiently, so no KNN support. Major thanks for coming up with this a week after your "enums and indexing" message. My love of all things Postgres has a lot to do with being able to do nearly anything one could want (coming from MySQL :-/)! So I was like, "Wait, what?" when you brought up the subject, since this was something I hadn't actually tried, but was planning to use btree_gin/gist with a good mix of stuff, including enums (array and scalar). At first I thought it was just arrays of enums, until this patch for the contrib extensions (for the btree parts with GIN/GiST; plus GiST exclusion?), and your blog posts... [1][2] I wasn't certain from the second post whether your array solution can be used today without this patch (yes, just tried 9.5). So, two separate issues, and the patch addresses scalar stuff, IIUC. It would be *really* nice to have this in 9.6. It seems it's simply filling out functionality that should already be there, right? An oversight/bug fix so it works "as advertised?" :-) Is any other btree type-compatibility missing from these modules? (I notice the btree_gin docs don't mention "numeric," but it works.) I just looked over the patch, and the actual code addition/changes seem pretty small and straightforward (or am I wrong?). And it's not changing anything in the core, so... Well, just wanted to argue my case! :^) [1] http://adpgtech.blogspot.com/2016/03/gist-and-gin-support-for-enums.html [2] http://adpgtech.blogspot.com/2016/03/gin-indexing-array-of-enums.html > cheers > > andrew Thanks, Matt -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers