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 1huLu5-0000PU-8p for pgsql-hackers@arkaria.postgresql.org; Sun, 04 Aug 2019 19:10:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1huLu2-0008LB-DH for pgsql-hackers@arkaria.postgresql.org; Sun, 04 Aug 2019 19:10:46 +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 1huLu2-0008Kb-0P for pgsql-hackers@lists.postgresql.org; Sun, 04 Aug 2019 19:10:46 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1huLtz-0004JW-4Z for pgsql-hackers@lists.postgresql.org; Sun, 04 Aug 2019 19:10:45 +0000 Received: by mail-wm1-x341.google.com with SMTP id w9so5174214wmd.1 for ; Sun, 04 Aug 2019 12:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-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=56pp68qoQ87rNd1Tyuu+pvqpCjCz/pXQWmIDt/MLpPY=; b=ygLmMed3HcSogDWdc25ViRRGH55EdcWGOVbZrsEaRAXFZb3Ha7lg9q4pow+GoASACX qMphbhPBv4pnFVq/A3boLvTpyGKdhDWNcRgh7IvRJQTCHjfw6p+hwUij2K66mOkX9KAN WXwKQSrFH5ce2+WzP3+hro17FQo4kfDpw57IrGXqISZz+Kj2vp1w2KHIZxNZKrZMhfdq +YE8gHCSTJ4q/1QTJI5OmJvE9mpfVY6FrWa+Yglxztxlfi4qH2lKwzVjPdmSC5+EvdLN VjFoBbfsKZv7+VnogCqSm63+JXNBhzEnjRVP04OChhh0KhnhVG4zZRCycq3N8qP/0cHQ 8Leg== 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=56pp68qoQ87rNd1Tyuu+pvqpCjCz/pXQWmIDt/MLpPY=; b=DCSo1UmWNHw55J+Ov81K96Vop8xoYcmd81iy/fD0mvpV7bXpZnuKj1+nFIR8CbqoEb uEcQepR8Z5T+ZBJTR+mPqt8pTDot3FrTHE6jqDTgndlXa10P08J7SEfsRjhCtqQNO+1/ v3lO1byYMdVfZqEPaK7lCCHPt4h95LvCf75wVZKNqV4H84L+hVzQdXbb4Jd9ekXtv/Op oR+WoMKSWhhTPYX+LUppTJ+uzGTG6MJaXREBEPu4GbFm97emnpx0btAZwo5hsPbIU4w9 Mq94dLL0xw2QNg0WY5dUO8qT3E74lkMSG+GIJEUWcJsEuVOkEiTXp5ApN/CCSrHvKlbX Xc2A== X-Gm-Message-State: APjAAAV5wPoSsUCZcCQMKkGnLj7+3l3OP0auF1bN/dB/wyjYJH9iZcpu 8FjPLTfpqNxP0aKq9r4ozRW5IHZJ6Qc= X-Google-Smtp-Source: APXvYqzLiAmt6+uX7I8krQO7uN/V6X53uxfukTCgx1QhcA46QdP3nThjJnHW2P7c8pPlzji3Bq6Mwg== X-Received: by 2002:a1c:f418:: with SMTP id z24mr14386271wma.80.1564945839784; Sun, 04 Aug 2019 12:10:39 -0700 (PDT) Received: from localhost (ip-86-49-253-160.net.upcbroadband.cz. [86.49.253.160]) by smtp.gmail.com with ESMTPSA id j189sm99818661wmb.48.2019.08.04.12.10.38 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 04 Aug 2019 12:10:39 -0700 (PDT) Date: Sun, 4 Aug 2019 21:10:37 +0200 From: Tomas Vondra To: Adrien Nayrat Cc: pgsql-hackers@lists.postgresql.org Subject: Re: idea: log_statement_sample_rate - bottom limit for sampling Message-ID: <20190804191037.em6rmlvxjpcsjtqu@development> References: <156292912396.1365.3073279552263868317.pgcf@coridan.postgresql.org> <156292957348.1365.8079060287740507529.pgcf@coridan.postgresql.org> <20190727221948.irg6sfqh57dynoc7@development> <4540bafe-1b23-a6ce-a313-f3b03bb418df@anayrat.info> <20190801100445.yo5v3pdxelijztzm@development> <3f6b75ea-03bb-7c35-1f20-e989f4b7f9ac@anayrat.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <3f6b75ea-03bb-7c35-1f20-e989f4b7f9ac@anayrat.info> User-Agent: NeoMutt/20180716-1444-295967 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Aug 02, 2019 at 09:53:40AM +0200, Adrien Nayrat wrote: >On 8/1/19 12:04 PM, Tomas Vondra wrote: >> On Thu, Aug 01, 2019 at 11:47:46AM +0200, Adrien Nayrat wrote: >>> Hi, >>> >>> As we are at the end of this CF and there is still discussions about whether we >>> should revert log_statement_sample_limit and log_statement_sample_rate, or try >>> to fix it in v12. >>> I moved this patch to next commit fest and change status from "ready for >>> commiter" to "need review". I hope I didn't make a mistake. >>> >> >> Thanks. The RFC status was clearly stale, so thanks for updating. I should >> have done that after my review. I think the patch would be moved to the >> next CF at the end, but I might be wrong. In any case, I don't think >> you've done any mistake. >> >> As for the sampling patch - I think we'll end up reverting the feature for >> v12 - it's far too late to rework it at this point. Sorry about that, I >> know it's not a warm feeling when you get something done, and then it gets >> reverted on the last minute. :-( >> > >Don't worry, I understand. It is better to add straigforward GUC in v13 than >confusionning in v12 we will regret. > OK, I have the revert ready. The one thing I'm wondering about is whether we need to revert log_transaction_sample_rate too? I think it's pretty much independent feature, so I think we can keep that. Opinions? regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services