Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1thWEl-003RC6-4v for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Feb 2025 16:02:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1thWEj-002WuK-FP for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Feb 2025 16:02:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1thWEj-002WuC-6X for pgsql-hackers@lists.postgresql.org; Mon, 10 Feb 2025 16:02:17 +0000 Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1thWEg-0003qk-0R for pgsql-hackers@postgresql.org; Mon, 10 Feb 2025 16:02:16 +0000 Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-3ce7c4115e8so18797615ab.1 for ; Mon, 10 Feb 2025 08:02:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739203332; x=1739808132; darn=postgresql.org; 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=mKtTdB571/Bov88jHauliane0X5vTYdW7msphzgxItY=; b=FK13vEKRHVx1Z6R83Yp4MWCjGXfOiyLY7NhznnzvAh22wzInelSn2fMLf8JDVXI25E Pf/ZRlvnSxb1h3PZOQh0AAfg9BoYefZGXXU5fcmMo84wKuCS6xMwb2helvqxHsZIDMwg GpTv19N3B+zd5LCQS9oypnh/PkrzKHS+se/kuYbS3vYNN6PvzaF6ghs7XiV8EcBuW+LT zDJ5Jutm/D59UK1QNlW4/ThTOfIEwXoIwbSm3JkDM6rgz6mRYpvaVboSvoem/oqrLczf WVH4oydu2LWUw/+xy5Yp68By1+FSwPXY0d6QWNJQr+FVHGCVKWGtH50hd1Kn3nRv25LF R0jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739203332; x=1739808132; 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=mKtTdB571/Bov88jHauliane0X5vTYdW7msphzgxItY=; b=JVeLU19nCHVN6EYKlT0zlztxHfARnptZO/6hBShfZzwDMEdw6HkXUe7Y8mKMysuaM5 FfZ+aot5uZXAHA7IGbIB4gxjqxPf5UBWi4P69rNV0AQGx/kkRNIOkcoOLFX4lCz9Bc8H /hvCS/MyzoCUa7vN1poN3Iu0sDM751/ZceYMWbhyJE5cbgpZW02vBBUBquJ/hARKvOjj o1Bjy597XkaEcv4gGeWlYOhmFJYzCaPHChDcMYVQm/OMJ81CnW15i8oc7tB5srw4lTW2 83DajeMjKUaNnjvBOd+VmY0zdRwInGs2yTonNNvlmpfUC4WW5DGnUlVXKZA0vcG78+AQ r7bA== X-Gm-Message-State: AOJu0YwS8VvtAXiSwI1AxdO0pTlQ+mZv8x1s4p/id/u6R1gTWQ01vp2c dyytfC8oQQelsoo7c8XqNvPUuSqF7NE/FMExeQ+RX7wU33Hrbium X-Gm-Gg: ASbGncsYVw4TKjBs4Zx7LmYnIETMB13ghM2s1ZuALz8TpcXgZsokJiph3o+psVv+gSy TYaiKfJimDwDQgUq/nOYaQJJ7c/z0yTBnDPRcwnp+W6INf6JldThICUJzjFzGKjwJwAZgRGetYW PZi0o69Tg8+G4Ithxl9/n7kmyFcvRHCMgFZjV4lih0USa4/D15lOv8uGydReOWQi2GPSwkNCEpg keiOFtuCqTMl+0l7nwksJeUVNsp/aTmpjv2LDYiJgA4fSryoozBaYXxjYW2dbmbyIs8lgfdxV1G fM9q6SUPMoxat3xmaWs9DaHi6ByefgD3XUE8FXGtSCpRS+gAakz4F/F6mYpw5gRR8sVaf5p8x7b 3gpvdKA== X-Google-Smtp-Source: AGHT+IFjIxIDQ5jxPikhLVb5oyuTuPhXA8NzYxAHXwKza8akARSpxDsIf9yqdXlXkUbQDg7Tkodr8w== X-Received: by 2002:a05:6e02:10d4:b0:3d1:5037:c97a with SMTP id e9e14a558f8ab-3d15037dc85mr64367505ab.3.1739203332114; Mon, 10 Feb 2025 08:02:12 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4ececee2efbsm1055059173.3.2025.02.10.08.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2025 08:02:11 -0800 (PST) Date: Mon, 10 Feb 2025 10:02:10 -0600 From: Nathan Bossart To: Peter Smith Cc: pgsql-hackers@postgresql.org Subject: Re: describe special values in GUC descriptions more consistently Message-ID: References: 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 Mon, Feb 10, 2025 at 09:13:26AM +1100, Peter Smith wrote: > +1 for improving consistency. Thanks for reviewing. > 1. IMO all places wording as "XXX means to YYY" should be just "XXX > means YYY" (e.g. remove the "to") > > e.g. "-1 means to wait forever." => "-1 means wait forever." > e.g. ""-1 means to log values in full." => "-1 means log values in full." I think this works in some cases, but IMHO it sounds awkward with the "means to use" ones (e.g., "0 means use the system default"). So I would probably leave the "to" in those. > 2. GUC names in messages should always be double quoted. Will fix. > 3. Wording for the automatic selections. > > Some of the special values get calculated and assigned *automatically* > on your behalf. The patch currently seems to be using "means to use" > for these: > > I felt all these should be written as: > "XXX means to use YYY" => "XXX means YYY is used." > > e.g. "0 means to use a suitable default value." => "0 means a suitable > default value is used." > e.g. "0 means to use a fraction of \"shared_buffers\"." => "0 means a > fraction of \"shared_buffers\" is used". > e.g. "-1 means to use vacuum_cost_limit" => "-1 means > \"vacuum_cost_limit\" is used." I'm also not tremendously happy with "means to use," but I'd like to avoid passive voice if possible. > 4. When there are multiple special values, it seems more natural if > the values are ordered. Maybe just personal preference. > > e.g. "0 means to log all files. -1 disables temporary file logs." => > "-1 disables temporary file logs. 0 means log all files." Seems reasonable to me. -- nathan