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 1gdMeg-0007zd-GV for pgsql-performance@arkaria.postgresql.org; Sat, 29 Dec 2018 22:00:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gdMef-0004vv-A9 for pgsql-performance@arkaria.postgresql.org; Sat, 29 Dec 2018 22:00:25 +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 1gdMee-0004vi-Vu for pgsql-performance@lists.postgresql.org; Sat, 29 Dec 2018 22:00:25 +0000 Received: from mail-it1-x12d.google.com ([2607:f8b0:4864:20::12d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gdMeb-0003UD-Io for pgsql-performance@postgresql.org; Sat, 29 Dec 2018 22:00:23 +0000 Received: by mail-it1-x12d.google.com with SMTP id i145so32426457ita.4 for ; Sat, 29 Dec 2018 14:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=S9+nsS1lw6EFagW71fa5dNDSATrbYJI4th/mipmKZ0c=; b=w+bNMeswpjarGbD5oIp6LjgSjp/ps79uICCju+T+vou1DhzJSGMNmpjBMJXyfMHZRh mtjSMmIIw1yWSe2YuEix7lvVWbB4cfj0rkcEdI9AGwqhTq1+2QDDejNxnwItUHgZMdfa IKmMrHWA2O9D8pSBf6RngZnwqkJ3VDxdsegD1oGC7kdbvvIuP0g1y3pbXDlf30HTkzSj kXyRG6DbeLx24YxW3/izgPvuuuNbp0dFs7ESyRbAod8KSC6SMtHL2gImYY0saD0cXIHu FR2egLfQ0NYmjV9KZb7Zt0zvQzgWQmQYR9/AVn5pMjFjYBb5YcYswDyWqTmbpHZtoplo rX4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=S9+nsS1lw6EFagW71fa5dNDSATrbYJI4th/mipmKZ0c=; b=Ue5voii7Ri68PWdFf4yObqzShuSAm2bCDT8oyKWHFXscuOnDLaX6nvZ/tMu+30Myt0 ddUV2M4brb3Urq6cY+jh5xyB1X9hyeToOJL4uzvr1jxmdVZ7IXtB++fnCXxIWhC7U3XS Dn7nEJ4VVes9Jlhond9U+dIzS7drUbsVPNcFvd0A7lvqG4XYFHRKtlOTuxOlWIf3Fuoi aBf5EusA1yf0uqLjxQ0OQqqj6jPK8WPFXeUZkpqP/mOXbo7xDMHXicxKpfWtjnpsJW8x JkZCNTDHcsCSpOCgd+zIl4fCIg2xpdcGWdt1tMzChpcyyG0TvjmKkJ6KRY7kbRw3tqpC u43g== X-Gm-Message-State: AA+aEWaVJkF2O6TNRwd1pfUxCtUpU7lMElIY0pzYYpDXSQtPfI6uYKO5 fmDBnb/6/HOIzb8BnX32SF2Bvnza2l/n8/t2aUOoow== X-Google-Smtp-Source: AFSGD/Xs9cUvlwyOQP5w0rX0lSlyzcG5+Flq0L6K5Fjm1TPcO2UoFrOurd7Ue/pKP2K2sOmf36qs4gxdkVxKUCGsfdw= X-Received: by 2002:a02:2303:: with SMTP id u3mr21533811jau.42.1546120820648; Sat, 29 Dec 2018 14:00:20 -0800 (PST) MIME-Version: 1.0 References: <20181229071535.GX30382@telsasoft.com> In-Reply-To: <20181229071535.GX30382@telsasoft.com> From: David Rowley Date: Sun, 30 Dec 2018 11:00:08 +1300 Message-ID: Subject: Re: Query Performance Issue To: Justin Pryzby Cc: =?UTF-8?Q?nesli=C5=9Fah_demirci?= , postgres performance list Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, 29 Dec 2018 at 20:15, Justin Pryzby wrote: > On Sat, Dec 29, 2018 at 07:58:28PM +1300, David Rowley wrote: > > Unfortunately, I don't think that'll help this situation. Extended > > statistics are currently only handled for base quals, not join quals. > > See dependency_is_compatible_clause(). > > Right, understand. > > Corrrect me if I'm wrong though, but I think the first major misestimate is in > the scan, not the join: I should have checked more carefully. Of course, they are base quals. -- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services