Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMxmP-0008Fu-HU for pgsql-general@arkaria.postgresql.org; Wed, 14 Nov 2018 16:12:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gMxmN-0002Mm-UA for pgsql-general@arkaria.postgresql.org; Wed, 14 Nov 2018 16:12:35 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMhPB-0004IW-7I for pgsql-general@lists.postgresql.org; Tue, 13 Nov 2018 22:43:33 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMhP9-00010x-04 for pgsql-general@postgresql.org; Tue, 13 Nov 2018 22:43:32 +0000 Received: by mail-ot1-x32b.google.com with SMTP id u3so7862744ota.5 for ; Tue, 13 Nov 2018 14:43:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windfalldata-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=gbvdCeuSomGXHt/mTgcklD3o/NThhJ8OMqEhVWtDPAE=; b=qtk4GB6unOV8YtFLf+QISZkUMESV3gstqsLZTqT8hxtLh1opoKOp/1f/UyMiJRlxYX vhX7owtXeR3ZCHrSwW/Q32VhRehmLJf0vlq2yrITkvFpHTK0qa+J/MemG4HxojtEgiqd k/FMHsUdVa1vIvlQq5L3rJ00jXmTSEpTFqM6FRIsVO5pICOhw6apf1K5vTTyfq5Hn6PM exl3KFn/TbNGuCkz0EPEMxXpd9ld/gMxCJbL1ctGxb058mIm+VKbIfu80CMPR2nezSSi nHul3Ma5Gs4p5MGD64e/JPC8JUIQGWl8Iwh0eVl57pMoGF6qE+H5mvaDcYMfowP7YmMK nBPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=gbvdCeuSomGXHt/mTgcklD3o/NThhJ8OMqEhVWtDPAE=; b=SKcSoS/LRJW0sKAwNfiLs+Vmz2YobtaAXCoVSCi4DPrFklH0lmVqU/TycsuWmHFUXH WHUKL3j3HsG10lRlaYR2RRAYCaQvAFTpM1hvST4arvDHx3RfdJ81ev/1s0frPTdm5cWW 4anGFZ37oBt6zKtE9+lR06x0jDg4lLcNNjXjc6YmKWjvpLGupKuOONoES7nEQ8KZtVGt F6UeFVChhCARQuB+80KtVCtE3VUkjWJKV+w5ZLveOj7FRkPIAfon54wNsbf0wtLx3wRF WelMST9nAXQU3z+ZNfCtGDV4HMcnzbtMKYb6+DKBFqhLzT+ILWWVxLFIwSKHGghX0vXE mu9Q== X-Gm-Message-State: AGRZ1gJ0Bd+g/+R0bU4ETcEpPB4vGSkZv087IhMKy9cydfl+qxbEYkNT deEAORa05ecYc3yPUx69HYr2cNtr04JWQW1AlkkExoPdoFYxiw== X-Google-Smtp-Source: AJdET5ecWSpKx3AFV53CFt7Oa3FutxmoqMnRYw9Be9FL7gMBnsYUUDimOVL4cl7ZmYMsIeAqr6yujpJvu58tCi85xKQ= X-Received: by 2002:a9d:6a3:: with SMTP id 32mr3991652otx.156.1542149007723; Tue, 13 Nov 2018 14:43:27 -0800 (PST) MIME-Version: 1.0 From: Jeffrey Kamei Date: Tue, 13 Nov 2018 15:42:51 -0700 Message-ID: Subject: <-> Operator on Trigram Index To: pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary="000000000000cbde56057a938bf1" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000cbde56057a938bf1 Content-Type: text/plain; charset="UTF-8" I'm trying to get the <-> operator to recognize a trigram index (GIST) I've set on a table. Using `EXPLAIN VERBOSE` I can see the query engine ignoring the trigram index when using the `<->` operator. However if I use the `%` operator, the index is found and used. Can you explain why this is happening? As far as I can tell from the documentation, the `<->` operator should be using the index as well. --000000000000cbde56057a938bf1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm trying to get the <-> opera= tor to recognize a trigram index (GIST) I've set on a table. Using `EXP= LAIN VERBOSE` I can see the query engine ignoring the trigram index when us= ing the `<->` operator. However if I use the `%` operator, the index = is found and used. Can you explain why this is happening? As far as I can t= ell from the documentation, the `<->` operator should be using the in= dex as well.=C2=A0

--000000000000cbde56057a938bf1--