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.92) (envelope-from ) id 1jDsZC-0003Kn-SB for pgsql-admin@arkaria.postgresql.org; Mon, 16 Mar 2020 16:26:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDsZB-0008SU-5R for pgsql-admin@arkaria.postgresql.org; Mon, 16 Mar 2020 16:26:13 +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 1jDsZA-0008SM-S3 for pgsql-admin@lists.postgresql.org; Mon, 16 Mar 2020 16:26:12 +0000 Received: from mail-qv1-xf42.google.com ([2607:f8b0:4864:20::f42]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jDsZ8-00051E-R3 for pgsql-admin@postgresql.org; Mon, 16 Mar 2020 16:26:12 +0000 Received: by mail-qv1-xf42.google.com with SMTP id v38so5134954qvf.6 for ; Mon, 16 Mar 2020 09:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:date:subject:message-id :to; bh=zLOT9m0ljK4Mn5kwmQzqe0G5sbBYlJ3rGAifJZyrgOI=; b=sMj42gpeEyKGluAc3ToQKTrWSi9gC3Sop2K5o9VFbFE6Ui79oLpiiwZ2CHvMdGkW5r bmaF8FdUG8XdzY1YNX0QrXxijhAvOaP0k9x/QjlaCsGiym7khQhXP84Hivj40yrjsox6 sC7Unt9nNohG78USdA88LXwZg7EL1QkLu0GdU7WMrkb2PSqd8efQGjOG37Nd4zqEk+et XsAYw4fVtdvVVgMNqOvDqGJq8+9NvLp3Kzj53xKM2Cc3ne9AfKEdBfzGlyzqZ99OfXjg 2Y0I6tCy5tuQyTwwFlq2XTtHC+RMOc3/QHIZMalBXlUeguLCRVO2xUIsZzl2dkrttSkD L++g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version:date :subject:message-id:to; bh=zLOT9m0ljK4Mn5kwmQzqe0G5sbBYlJ3rGAifJZyrgOI=; b=oMh0jyXUA4gzbWpLa33U3qba5VU72XI04oQpit0K4X4+vCTVRQnXQZzXXDhDN/vpFJ txGidO66PtP5BJmi+OXf19BiYz+3G8K1mozj94i7ZmjV5wPaOp+tZ+ZfI8yS2Oa7nUGo QmSsxPLE4d+BCirgClylIUxAhXPVyUKCiJLbTECISNxCep4L5iJ7rKg3c2IXYUFq0HPF 8vJb1okIsOtWEoU6opJGWDNGnaqk/sBQVdkvQeFdHzLzXTEQ4xAnmMJ9c0rU7rBEuqvi cR8XELD6CdWKXa0lSnCrghziHeCven67ZRuLyXafVMllhemJNiEgrgo3kyTfylbDifPn 1ZzA== X-Gm-Message-State: ANhLgQ0XNCYtvc4AvUZwynIBZdOKApsQAHb4fxMttwQwtOcMGAGo3DKC qz9kbQFK0pRIy7OMFrcY9RkfL2Ao X-Google-Smtp-Source: ADFU+vt3a7y0wi4XVQKwElUpUpHfo7MwerKf1F9tCQHSHvxpSy9OBBSzVb89zybms0CKl3UKXl2WaA== X-Received: by 2002:a05:6214:1914:: with SMTP id er20mr632963qvb.104.1584375966591; Mon, 16 Mar 2020 09:26:06 -0700 (PDT) Received: from ?IPv6:2603:9000:f609:a03d:ef:9033:21e3:8a9b? ([2603:9000:f609:a03d:ef:9033:21e3:8a9b]) by smtp.gmail.com with ESMTPSA id l45sm144713qtb.8.2020.03.16.09.26.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Mar 2020 09:26:06 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: John Scalia Mime-Version: 1.0 (1.0) Date: Mon, 16 Mar 2020 12:26:04 -0400 Subject: Explain plan on a Select query Message-Id: <83029EBF-241B-499B-881A-9057399DC67B@gmail.com> To: Pgsql-admin X-Mailer: iPad Mail (17D50) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I=E2=80=99m a bit confused on an explain plan I just generated for a select s= tatement. The plan=E2=80=99s first line begins with the word =E2=80=9CAppend= =E2=80=9D followed by the usual (cost....) data. What in the world is an App= end doing here? I=E2=80=99ve recently performed another analyze on the tabl= e, btw.=20 Also, the query does not seem to be using an index, as the explain shows a p= air of sequential scans, speaking of which, the second sequential scan shows= it=E2=80=99s on a table, called _test. Which is a little strange, co= nsidering that does not exist. The query=E2=80=99s where clause is on a varchar(25) field. And that field h= as both a btree index and a trigram index on it. I=E2=80=99ve tried using wh= ere =3D, like, and ~ in order to see if I can get it to use an index. All at= tempts continue to say sequential scan. =E2=80=94 Jay >=20 Sent from my iPad=