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 1ooppN-0004mv-NP for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Oct 2022 17:41:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ooppM-0004Y4-Ij for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Oct 2022 17:41:00 +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 1ooppM-0004Xc-5y for pgsql-hackers@lists.postgresql.org; Sat, 29 Oct 2022 17:41:00 +0000 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ooppJ-0002vh-JV for pgsql-hackers@lists.postgresql.org; Sat, 29 Oct 2022 17:40:59 +0000 Received: by mail-io1-xd34.google.com with SMTP id o65so6958232iof.4 for ; Sat, 29 Oct 2022 10:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=SOm67i3XtX8SPS0JyQr2YMGAFqq1HjI5j+OmAL2RcZQ=; b=n6pa12SfD871Dh+0IYDkDTt9hmH6XLusn1rU3+jg93e12uZHNfMplWHKLwFFCXgw+Q uzuCWX0Cr7EXJ02MScHCIpT8w2CSnF3tboFIUbIlDQ2210MvFvsnLgvGKQNoXn74PCBS WjfLpTOJqDkJSpchnPFEJMJCfBO+7aUj0cjyeO3MwsQm3Jd44lk5ZP56d+86WUgQRvEW ccObAgLsJxV0GhT+ydpwiu8NHke1ffSF+h8vuhJADv7umV6T7KsvXveza/LdBXfuZnTJ u7ylpjQpG+9+mlTOB5rnE5c3JI/oEr/fF309mP9wtWlT/m8y3hW7ZkC31ligoSgWzqyF Xc/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SOm67i3XtX8SPS0JyQr2YMGAFqq1HjI5j+OmAL2RcZQ=; b=2WHDD69e1tY0Tdgt5PBkufV3loYTurQSJakQhak+CtGEoHBiBYJCfvubPU2itXZ6w8 ePzmDkqDX64TYL/j74is44BSR8op96Ky5Hows0+p7Us/KKK6iE0AqJsZ2/lr++LqVjlQ DtUM11PBFq5jrRcFXECw/A75K4EFg+6pI5NJ/1k5U9k/H58DQ9aDW8AV7QtBes15C8X7 zCmW/p7txtS4ZiFbxELdiy9O0wnMmOUDJFIsW2kebcJvxyR2oyTz8yHUlFULqHnzngXW 3GlRtaCRj/6ayGQYs4rRHu6Y7BW24fjAPggdV9Ztx4JE2wBEQSJ0jqUOVxhp+HOMS4Yu n4Yw== X-Gm-Message-State: ACrzQf2oN8xPOakdy3kwbZqb1gj5kFLI5DBHJPsK4rQpqcwT9lAzaueq YZp64+C5eC/SB9Vn7KtQx0m4/A== X-Google-Smtp-Source: AMsMyM5SWoac8qw+7Kr7AfYzL7p8sPrKRs5NJFswildzmEc/lVdyseElbPMFh5zVXV0hy7NR+8JxPg== X-Received: by 2002:a5d:9f50:0:b0:6b6:2e7e:2b71 with SMTP id u16-20020a5d9f50000000b006b62e7e2b71mr2486883iot.42.1667065255389; Sat, 29 Oct 2022 10:40:55 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id n4-20020a02a184000000b00346a98b0a76sm802752jah.77.2022.10.29.10.40.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Oct 2022 10:40:54 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id ED0EE800D87; Sat, 29 Oct 2022 12:40:53 -0500 (CDT) Date: Sat, 29 Oct 2022 12:40:53 -0500 From: Justin Pryzby To: Tom Lane Cc: Maciek Sakrejda , Robert Haas , "David G. Johnston" , Bharath Rupireddy , Cary Huang , pgsql-hackers@lists.postgresql.org Subject: Re: warn if GUC set to an invalid shared library Message-ID: <20221029174053.GA19704@telsasoft.com> References: <20220210015854.GV31460@telsasoft.com> <20220722015412.GA7789@telsasoft.com> <675610.1658512401@sss.pgh.pa.us> <20220722183557.GC7789@telsasoft.com> <729940.1658516423@sss.pgh.pa.us> <20220722191443.GE7789@telsasoft.com> <734432.1658518007@sss.pgh.pa.us> <20220902222458.GC31833@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220902222458.GC31833@telsasoft.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Sep 02, 2022 at 05:24:58PM -0500, Justin Pryzby wrote: > It caused no issue when I changed: > > /* Check that it's acceptable for the indicated parameter */ > if (!parse_and_validate_value(record, name, value, > - PGC_S_FILE, ERROR, > + PGC_S_TEST, ERROR, > &newval, &newextra)) > > I'm not sure where to go from here. I'm hoping for some guidance ; this simple change may be naive, but I'm not sure what a wider change would look like. -- Justin