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 1nDRun-0002El-3Y for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Jan 2022 14:07:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nDRul-0006tv-Td for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Jan 2022 14:07:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nDRul-0006tm-Ie for pgsql-hackers@lists.postgresql.org; Fri, 28 Jan 2022 14:07:47 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nDRuj-0006rB-6C for pgsql-hackers@postgresql.org; Fri, 28 Jan 2022 14:07:46 +0000 Received: by mail-lf1-x12b.google.com with SMTP id x11so12052799lfa.2 for ; Fri, 28 Jan 2022 06:07:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=A44OxUq4stK+rbfcDgOiUWmeJVvHpQR/ksQGablMtoc=; b=kq5jnbJrtpd9tf6woGEJ8zn8C8tUNsVpQGqQjc0lppSa3pYARy15ALWsAddpQw8lMc epg3P9cY4XWP66zFFavOjQkcLouZ4p+yZIjJK9bd29Q1MrDCpD5uOSA7bbN2xm7q5ZAC OZMA6TyYD534hqsgaFC2fYOBqqNNC/sGiPtuxo5FBsA+DnAMSrC6RUmXa9DCfpxZgeNk pZfgVLbUUpnqC/jMNRewFcWp3cIzYaOeZFw/guHeqp01KVufkKKEItRMZSAoJ5tFeN6c 9M1K5/xqRRw0C0DLOv0z2DyKC7iFACZ0nOC3MWFiFh1qVwXxnYRLwqo4+ggKJ4c6gZdp TpBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=A44OxUq4stK+rbfcDgOiUWmeJVvHpQR/ksQGablMtoc=; b=3VzL1P8Z0AFAkwksIJrWt0wN7bytNTb0ZXXgs++/nKZVYP/31CE7u0l7ulAhqK7ReR /pT5UVbuXp4XJFeqP9TmIkwWSsJh8jMKsPNY9YOdfCYrgUYSp8RwK/0teYWGtakHd4P/ KLSkzdaHZ9Z7piF7zO29eRMtpaoZBtW9Wp/YKjFH1ko+OZm4MgY2WgIPFgrHaRsNyIYx lTKql0CeQL/WUZ8d8yO2bOKo2FDcD5ta7CfTBeAX4oyCxuIFnrVrKsnBYIxgS7n8I+2h DFMyajEpRSnxhBswRBtiABCwTqGbl5XiJu/yIqfxfqEnPTX0kTONfOuOCUDHAPIa0Fz4 L5Dg== X-Gm-Message-State: AOAM530TdHHJ+GVBI0NNKy4HpJyu595XYHtnWXWkJcPx48C2hFH1ArWT EHYU6Mf5ybL+AXOaVJn7a0LWxDXduBSWDNEkVAJEUbIN X-Google-Smtp-Source: ABdhPJxGXKYuubTtim82vjyf8OGLwQefPfEnZkx1lyo6NhnCuz7X1NBgTgdpO8+R5paGL1gLr+L7HV4HmgffEywL9XQ= X-Received: by 2002:a05:6512:3d93:: with SMTP id k19mr6501958lfv.268.1643378863739; Fri, 28 Jan 2022 06:07:43 -0800 (PST) MIME-Version: 1.0 References: <91533bcd-c3a3-5844-7449-43aceede2117@enterprisedb.com> In-Reply-To: <91533bcd-c3a3-5844-7449-43aceede2117@enterprisedb.com> From: Robert Haas Date: Fri, 28 Jan 2022 09:07:32 -0500 Message-ID: Subject: Re: Parameter for planner estimate of recursive queries To: Peter Eisentraut Cc: Simon Riggs , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jan 25, 2022 at 4:44 AM Peter Eisentraut wrote: > On the one hand, this smells like a planner hint. But on the other > hand, it doesn't look like we will come up with proper graph-aware > selectivity estimation system any time soon, so just having all graph > OLTP queries suck until then because the planner hint is hardcoded > doesn't seem like a better solution. So I think this setting can be ok. I agree. It's a bit lame, but seems pretty harmless, and I can't see us realistically doing a lot better with any reasonable amount of work. -- Robert Haas EDB: http://www.enterprisedb.com