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 1iSVVf-0006qG-30 for pgsql-performance@arkaria.postgresql.org; Thu, 07 Nov 2019 00:18:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSVVd-0002F2-S8 for pgsql-performance@arkaria.postgresql.org; Thu, 07 Nov 2019 00:18:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSVVd-0002Eu-Bc for pgsql-performance@lists.postgresql.org; Thu, 07 Nov 2019 00:18:45 +0000 Received: from mail-yb1-xb43.google.com ([2607:f8b0:4864:20::b43]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iSVVZ-0004dW-Rc for pgsql-performance@lists.postgresql.org; Thu, 07 Nov 2019 00:18:44 +0000 Received: by mail-yb1-xb43.google.com with SMTP id g38so251957ybe.11 for ; Wed, 06 Nov 2019 16:18:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=JsjpZTDme95C3K7PPXK3M26gvKOKETTp9KbEqrDcI6U=; b=CawyQKCImp1Wf7RQxL9sRiQbk92FsCw6Ui7xcq/66JDHgW1zEX8m9syKx6lUlR6n0T llnOglD2+d70h2NEf+zSj606N9+A9IXl0vChk3rEl8F/cxakDyDBIO6har99KGMzCnr5 ITZKz4mjqiP/Uk80INPbV1TM1rOynxcDnYs5ZAYZHZ6kfEtvN9A+Gjo39D1dddloAp4+ BnGXS9NnL8q4ThxTELfU26UrXgB8SGXCMxUZ559z5sqwokUTMkQwDh46f1V/0SSKIGuk FF7DnUYOUWWMIqjPJKN/QRtoi2jwNkNnnLPVZZ4D1P4UoqRplGbqjOc2PRnvQN24KNK3 2gYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JsjpZTDme95C3K7PPXK3M26gvKOKETTp9KbEqrDcI6U=; b=WoVIrEgQuNkQs63SEnRsvxQKjZaubuxY20TlLKgOrtH3GpGvK7cECc5T+gGb3Y2xfs 3fraBV9MzBhEJYseGGkFxuv3a5lvbqFd7cuTx9FTEea9SdCBVmzQ0YJCrLOfNHVqGFLp plrCwSRphQXtbLZlFGgyc0qvsB8yuN7ajLY5+tg77POy46B9ah+xRsZErUX84A3K6wOl H6kCRXWps0zT15isHiElv5nUGyHYAptxTXsHM1YMHhgJkRclqnLvF1Gs8GoIR4xfLlxT UYGA1iLMQC/35SusHQnQDTmSc1prkFrcAsSbl5ZwvbqsjvhywXHLBXcl8+kPh1zz5sIE Bd8w== X-Gm-Message-State: APjAAAVEqRtevM11YoRak9Je6XUCX2LDuF0l6sGfAaoziRdlZWRDPaxY JQv6l0OomWcXpnmnI+CLC80lxg== X-Google-Smtp-Source: APXvYqxaNMq/YhEkETO6BL6yaFRPGznpFnPlMeCZxY6A6DAk/e+JZ+4GbKUnGd3IlgSFNFd8NYkUWw== X-Received: by 2002:a25:d2cd:: with SMTP id j196mr846392ybg.474.1573085920360; Wed, 06 Nov 2019 16:18:40 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id w126sm135261ywa.85.2019.11.06.16.18.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2019 16:18:39 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 5816D80096B; Wed, 6 Nov 2019 18:18:38 -0600 (CST) Date: Wed, 6 Nov 2019 18:18:38 -0600 From: Justin Pryzby To: David Rowley Cc: David Wheeler , Tom Lane , pgsql-performance@lists.postgresql.org, Cameron Redpath Subject: Re: Slow planning, fast execution for particular 3-table query Message-ID: <20191107001838.GG4999@telsasoft.com> References: <15855.1572843659@sss.pgh.pa.us> <175BE386-F861-4064-8B5D-93E63BD90F13@dgitsystems.com> <20191106225945.GE4999@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Nov 07, 2019 at 01:15:30PM +1300, David Rowley wrote: > On Thu, 7 Nov 2019 at 11:59, Justin Pryzby wrote: > > > > On Mon, Nov 04, 2019 at 03:04:45AM +0000, David Wheeler wrote: > > > Postgres version 9.5.19 > > > Each of the tables has between 3-4 indexes, and all the indexes include tid as first parameter. > > > But note that index definition will be prohibited since: > > > > https://www.postgresql.org/docs/9.6/release-9-6.html > > |Disallow creation of indexes on system columns, except for OID columns (David Rowley) > > |Such indexes were never considered supported, and would very possibly misbehave since the system might change the system-column fields of a tuple without updating indexes. However, previously there were no error checks to prevent them from being created. > > David will have meant the user column named "tid" rather than the > system column named "ctid". Ah. And David must have meant David W :) Justin