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 1oDgLV-0001T1-Dw for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Jul 2022 06:04:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oDgLT-0001aa-SK for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Jul 2022 06:04:35 +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 1oDgLT-0001aR-Hy for pgsql-hackers@lists.postgresql.org; Tue, 19 Jul 2022 06:04:35 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oDgLQ-0005VM-Tx for pgsql-hackers@postgresql.org; Tue, 19 Jul 2022 06:04:35 +0000 Received: by mail-pf1-x433.google.com with SMTP id y9so12590671pff.12 for ; Mon, 18 Jul 2022 23:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:message-id:to:cc:subject:from:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=8lm5emiN0Fh9u5wUsBd4kQBh4TPipGaNHqtBKD1OPgA=; b=Mbim6cr/bFED7W08M+PZWeoOR7O/sFXZMrKeBNdz1XOOCFV3r3T9CGlfR9pYBKvdWt lquePao2XRwAJeHtqZdt5Xy6olZmUdTnQ5E8m8klwV/L6uwvC6PRloUX7kfFfgaOrE3y h3CaIEfGvt2548UKoDNDDRH1xACjtmda1polw6RCKcE8AVnU96qC+2faTek9do162c/W Nzlv0x2Ms8l+fmxdUZQDzzEAycaNWyoydxIyWmkfaYxcirxYZZqHtvppp7kPZNUbAm2I PcNdo8w6Z3jZTJi+aoi2CW1aJrDpw7EE+xpv4JGf08JV0gGnozzzoWaVJmq2OlAyc0M4 f2Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:to:cc:subject:from:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=8lm5emiN0Fh9u5wUsBd4kQBh4TPipGaNHqtBKD1OPgA=; b=5igdoaQc2Yql2HZS4kOeOYi/5wDbpx9IM4gL/en40FnCYe1oY+n+6E/mzEi1xBAqbP 94fEw/FUeQie5d6QPLVZlKWptLzp3F90IPhrL3T1GFnDRY2QB+CmDPbZeb0aOkNyNlYJ NnaI2P5Ne7mH3PDfKlJkmW77PmDLb+pYphcUMi7xbq3EAqvRVBPnz2MNIL8E25rZHt5+ P0FvBJbYOpHyXz3L7v5aqT0+lNfQ6ZuZC+3VX3CcWHOmHj/uKAa+034T1H835tG3ELyz U4fh4v5nrwDLmdX/W6aNbr9asvheqfBxEXXp96OyntXZRxd+BWZEDo60+ULkQ2tVSZkO 5tKQ== X-Gm-Message-State: AJIora+tFZg2SGdcBSA73q6o9zoNh34YjjmPBktWF+5UzKlvz1Y/kQOV qycWLFGkSWJ0n5ccPs69Ejk= X-Google-Smtp-Source: AGRyM1tmgo2jaPUJsVjSoWAAwC7+5gI4mOqpKt7v8N/AbsRz53rHhGVAISKl6Cax/A7Fn3LAjA9aeQ== X-Received: by 2002:a63:1208:0:b0:411:9b47:f6cc with SMTP id h8-20020a631208000000b004119b47f6ccmr27904092pgl.79.1658210670562; Mon, 18 Jul 2022 23:04:30 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id r14-20020a63ec4e000000b004150a28a56fsm9225814pgj.53.2022.07.18.23.04.28 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 18 Jul 2022 23:04:29 -0700 (PDT) Date: Tue, 19 Jul 2022 15:04:27 +0900 (JST) Message-Id: <20220719.150427.952514686871468436.horikyota.ntt@gmail.com> To: pryzby@telsasoft.com Cc: michael@paquier.xyz, andres@anarazel.de, nathandbossart@gmail.com, pgsql-hackers@postgresql.org Subject: Re: fix stats_fetch_consistency value in postgresql.conf.sample From: Kyotaro Horiguchi In-Reply-To: <20220713235444.GF18011@telsasoft.com> References: <20220713173000.GD18011@telsasoft.com> <20220713235444.GF18011@telsasoft.com> User-Agent: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk At Wed, 13 Jul 2022 18:54:45 -0500, Justin Pryzby wrote in > On Thu, Jul 14, 2022 at 08:46:02AM +0900, Michael Paquier wrote: > > On Wed, Jul 13, 2022 at 12:30:00PM -0500, Justin Pryzby wrote: > > > How did you make this list ? Was it by excluding things that failed for you ? Yes. I didn't confirm each variable. They are the variables differ on RHEL-family OSes. io_concurrency differs according to USE_PREFETCH. Regarding to effects of macro definitions, I searched guc.c for non-GUC_NOT_IN_SAMPLE variables with macro-affected defaults. WIN32 affects update_process_title USE_PREFETCH affects effective_io_concurrency and maintenance_io_concurrency HAVE_UNIX_SOCKETS affects unix_socket_directories and unix_socket_directories USE_SSL affects ssl_ecdh_curve USE_OPENSSL affects ssl_ciphers HAVE_SYSLOG affects syslog_facility Different from most of the variables already in the exclusion list, these could be changed at build time, but I haven't found a sensible way to do that. Otherwise we need to add them to the exclusion list... > > > cfbot is currently failing due to io_concurrency on windows. > > > I think there are more GUC which should be included here. > > > > > > http://cfbot.cputube.org/kyotaro-horiguchi.html > > > > FWIW, I am not really a fan of making this test depend on a hardcoded > > list of GUCs. The design strength of the existing test is that we > > don't have such a dependency now, making less to think about in terms > > of maintenance in the long-term, even if this is now run > > automatically. > > It doesn't really need to be stated that an inclusive list wouldn't be useful. +1 > That's a list of GUCs to be excluded. > Which is hardly different from the pre-existing list of exceptions. > > # Ignore some exceptions. > next if $param_name eq "include"; > next if $param_name eq "include_dir"; > next if $param_name eq "include_if_exists"; > > -- Exceptions are transaction_*. > SELECT name FROM tab_settings_flags > WHERE NOT no_show_all AND no_reset_all > ORDER BY 1; > name > ------------------------ > transaction_deferrable > transaction_isolation > transaction_read_only > (3 rows) > > How else do you propose to make this work for guc whose defaults vary by > platform in guc.c or in initdb ? regards. -- Kyotaro Horiguchi NTT Open Source Software Center