Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moTsg-0004MQ-Tp for pgsql-bugs@arkaria.postgresql.org; Sat, 20 Nov 2021 17:10:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1moTsf-0002T3-Fa for pgsql-bugs@arkaria.postgresql.org; Sat, 20 Nov 2021 17:10:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moTsf-0002Su-7Q for pgsql-bugs@lists.postgresql.org; Sat, 20 Nov 2021 17:10:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moTsd-0004ax-RV for pgsql-bugs@lists.postgresql.org; Sat, 20 Nov 2021 17:10:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1AKHALEI3175926; Sat, 20 Nov 2021 12:10:21 -0500 From: Tom Lane To: ilan@tzirechnoy.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17294: spgist doesn't support varchar, only text type fields. In-reply-to: <17294-8f6c7962ce877edc@postgresql.org> References: <17294-8f6c7962ce877edc@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Sat, 20 Nov 2021 11:49:20 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3175924.1637428221.1@sss.pgh.pa.us> Date: Sat, 20 Nov 2021 12:10:21 -0500 Message-ID: <3175925.1637428221@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > ilank=*> create table test (a text, b varchar); > CREATE TABLE > ilank=*> create index on test using spgist (b); > ERROR: compress method must be defined when leaf type is different from > input type Ugh. Fails for domains over text, too, which it shouldn't. Will fix, thanks for the report! regards, tom lane