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 1nIbyT-0004rR-4e for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Feb 2022 19:52:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nIbyR-0004J5-Nt for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Feb 2022 19:52:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIbyR-0004Iw-32 for pgsql-hackers@lists.postgresql.org; Fri, 11 Feb 2022 19:52:55 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nIbyL-0001qn-To for pgsql-hackers@lists.postgresql.org; Fri, 11 Feb 2022 19:52:54 +0000 Received: by mail-ed1-x535.google.com with SMTP id co28so18100491edb.1 for ; Fri, 11 Feb 2022 11:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=4R/u078mw1CreAZAruwANbEa1zBMYtw6BoqXCFuvnwU=; b=B0TAmCq7FzbmVrnMn9GI5kaJl45NVC7Rxl/L0gl500UW6RyPQK85A4ixHcDDcoODUD xZAsZE3tv/5GqBv+yIOKbaP48ktqArl3o/HxhmwntWNSDvmAhVLUpOUgFPz9cHc0r9re hZMqttPkQb39YnaeOUSchTARUMwtyYWph+B4ud6n1pu0W0nNAySwd/mq7fU7vkqOxEjB rFWZUDYMpgh+R+pwCYg0f7zvIBmk9hvdHwd9Z5aO084x6h5Rnu0VdL/qxBO1bv5K3WLl 4DSF8mMAgHxD9ls8hwUY0013tcCHxpXDjSW+cw33KbOuIU6qPX+Z6222xnxLrCeCKfP2 3zxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=4R/u078mw1CreAZAruwANbEa1zBMYtw6BoqXCFuvnwU=; b=q5eeysQxnmqSu5bLeASnOz66emHhjy5EFZ8rRWRPBIz6z9HzDG2tBunDtB3etiWknR wa1WxvuPc/d9kpFSGETShnfz8qXEtvGkLdHSjO1fHwSUVVwXIfURUYPUyxkVnOSDNbzf 7vt74O975VLBrysxf57amu+CK6qBY8Q7qhcBeoshUNIuR524kYZYWfZRlX883JXy1sOf PRO5cczGxdfRNRNDSox+eymagKwplk39OQqask7j20EhoVCGg/REGMIJaow5U4YlvKAA bPb/1aN6MjeEAryvaZXmToaBNFrdtHWGbJWffxoxu95vuxrJ+CImzI+bjHtMayHOkosc m6ig== X-Gm-Message-State: AOAM530YKE1o+LAEZ4HhYiiHnl2/KN2PH4Sy0ZB+uQDmwIQQQAhroGS2 Lym+pOfHQSXiYOE3UxTjJyj1naxLbcj32CQq6W7jDZui1lRAdm4OQus7eWesZEkfmwOf1vu2fmm yqkhZM9+VjiW2xNcJqt05Nc/D5XE5A4z3tb9u3JKQs19gxdR8uxd0FlTidcopzrnTcof/OQCMEr LrN+T15giWxX1yZ9dUdbOqwT1xXft5i1+TTBvJdVE8fcPfT6iSMWtW X-Google-Smtp-Source: ABdhPJzeVYEdMNxxWulvF0uz/6Z53gXB+vZsf5uZu+11qNnOBObDN4qFhkNIM4uBtpate5ChDIMbNg== X-Received: by 2002:a50:8e4b:: with SMTP id 11mr3600154edx.445.1644609168519; Fri, 11 Feb 2022 11:52:48 -0800 (PST) Received: from [10.137.0.19] (ip-86-49-251-241.net.upcbroadband.cz. [86.49.251.241]) by smtp.gmail.com with ESMTPSA id ot38sm5709743ejb.131.2022.02.11.11.52.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Feb 2022 11:52:47 -0800 (PST) Message-ID: <60c4dc7c-82e8-ab04-a938-d7b7c5ee75f0@enterprisedb.com> Date: Fri, 11 Feb 2022 20:52:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: postgres_fdw: using TABLESAMPLE to collect remote sample Content-Language: en-US To: Robert Haas , Tom Lane Cc: PostgreSQL Hackers References: <151e835f-55d6-ddbc-b5b4-07ee606aba44@enterprisedb.com> <2080021.1644601183@sss.pgh.pa.us> <2082308.1644602761@sss.pgh.pa.us> From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/11/22 19:13, Robert Haas wrote: > On Fri, Feb 11, 2022 at 1:06 PM Tom Lane wrote: >> While I'm not opposed to moving those goalposts at some point, >> I think pushing them all the way up to 9.5 for this one easily-fixed >> problem is not very reasonable. >> >> Given other recent discussion, an argument could be made for moving >> the cutoff to 9.2, on the grounds that it's too hard to test against >> anything older. But that still leaves us needing a version check >> if we want to use TABLESAMPLE. > > OK, thanks. > Yeah, I think checking server_version is fairly simple. Which is mostly why I haven't done anything about that in the submitted patch, because the other issues (what fraction to sample) seemed more important. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company