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 1paMDP-0008VD-CK for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Mar 2023 19:46:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1paMDO-0008Il-5O for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Mar 2023 19:46:14 +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 1paMDN-0008Ic-ST for pgsql-hackers@lists.postgresql.org; Thu, 09 Mar 2023 19:46:13 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1paMDL-0000kJ-Ei for pgsql-hackers@postgresql.org; Thu, 09 Mar 2023 19:46:12 +0000 Received: by mail-pl1-x62f.google.com with SMTP id x11so3129668pln.12 for ; Thu, 09 Mar 2023 11:46:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678391170; h=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=WM4eXYDnlcOx7VYugudYujdcjPnbjY+xypAe2CDn/Zw=; b=poRUNYvHMulDtOxqL9JK08mHBuO+yTx+9fUzvmG/6oNM6nW7XJer3Op8j641JwQjRa 2S7usvxxXobCJz9k8TOQZ3mO0uvZsqy2NPBLFKWaqQQ4JTPFU0Jwh4Q65S3T0/u+aII+ xxilwdDI8jYEpSfuSjo8HyhDq9QoNnTRmIYBpwJLkyirkpAvoR3zjVtF2n6LvHj+Ixmk NIjawILbQpVjaEtd7a++1Lsmd91V1awZ2lhHOxATFks98ep7rAiWoSyWIgxdp3MXyMN+ WEmATfS2FWop775/4HT7yPfidsoNRZ3Okd6oZfHVIVI1sMrT4svREStDzcET7ijurpo+ 9gEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678391170; h=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=WM4eXYDnlcOx7VYugudYujdcjPnbjY+xypAe2CDn/Zw=; b=FqGI0++jMUDLqFGdG3AegJrD9vHUXsiFnKlqhYZVKh2yAyGag2i9cDUWV86AKRqUkG UjgJFBUBhKTwgRsmJDPPPxBG8ghhnwjTRhHw0P7pWgdG9tjUIBqLEa10dx4NpUANVfxF O3SsEkB6tShNnFlMZ1vxriaQUHZotZOQT4M3i9FKeZAxGtjOCcTFJxXhHLWsRpNm9Ra1 Pwk0QbbSHmO/u+7kXk36DyvhLXsBMF9g9VRlS87H8zncrFZmsfyPz/tcmsVGKPRnwPEm yW0AxnkMoIpv0pHYI4tyW5QVG7Pu6JHPZHzukoVH5ysJI4FJaE5SJ4OGB38lLrJQ2ZPx 7hDQ== X-Gm-Message-State: AO0yUKUMw3RlMhqw588+LOVC4nRkxlVe/5t/LHrKu+u9WGeyVH5qS6Tt 9ktEcG/f3Sd4f960aAJAeTg= X-Google-Smtp-Source: AK7set94UXjN9M4jXcR2OjEsDQyrHqyIFh0vJHgxIjL2NPHlbmfqCjembTyCLekMRJuTXcpkekZECg== X-Received: by 2002:a17:90b:224e:b0:233:d108:1c62 with SMTP id hk14-20020a17090b224e00b00233d1081c62mr24109939pjb.32.1678391170438; Thu, 09 Mar 2023 11:46:10 -0800 (PST) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id t10-20020a17090ad14a00b00233db0db3dfsm316954pjw.7.2023.03.09.11.46.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 11:46:09 -0800 (PST) Date: Thu, 9 Mar 2023 11:46:08 -0800 From: Nathan Bossart To: Justin Pryzby Cc: Stephen Frost , Alvaro Herrera , Andres Freund , Michael Paquier , Kyotaro Horiguchi , thomas.munro@gmail.com, tgl@sss.pgh.pa.us, john.naylor@enterprisedb.com, noriyoshi.shinoda@hpe.com, jchampion@timescale.com, sawada.mshk@gmail.com, masao.fujii@oss.nttdata.com, pgsql-hackers@postgresql.org, rjuju123@gmail.com Subject: Re: Improve logging when using Huge Pages Message-ID: <20230309194608.GA3703826@nathanxps13> References: <20230208231803.GP1653@telsasoft.com> <20230209094013.67varf63bihops33@alvherre.pgsql> <20230209192909.GA606606@nathanxps13> <20230213232245.GI1653@telsasoft.com> <20230214041852.GA1190218@nathanxps13> <20230215013256.GP1653@telsasoft.com> <20230215181317.GA1353037@nathanxps13> <20230308221656.GA3621885@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Mar 09, 2023 at 10:38:56AM -0600, Justin Pryzby wrote: > On Thu, Mar 09, 2023 at 09:34:10AM -0500, Stephen Frost wrote: >> To that end- perhaps this isn't appropriate as a GUC at all? Why not >> have this just be a system information function? Functionally it really >> provides the same info- if the server is running then you get back >> either true or false, if it's not then you can't call it but that's >> hardly different from an unknown or error result. > > We talked about making it a function ~6 weeks ago. > > Is there an agreement to use a function, instead ? If we're tallying votes, please count me as +1 for a system information function. I think that nicely sidesteps having to return "unknown" in some cases, which I worry will just cause confusion. IMHO it is much more obvious that the value refers to the current server if you have to log in and execute a function to see it. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com