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 1ppTdp-0002D9-Nd for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Apr 2023 12:44: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 1ppTdo-0001GA-Aq for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Apr 2023 12:44: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 1ppTb4-0004C1-QZ for pgsql-hackers@lists.postgresql.org; Thu, 20 Apr 2023 12:41:10 +0000 Received: from mail-yw1-x112b.google.com ([2607:f8b0:4864:20::112b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ppTb2-004202-FY for pgsql-hackers@lists.postgresql.org; Thu, 20 Apr 2023 12:41:10 +0000 Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-54f6a796bd0so37925607b3.12 for ; Thu, 20 Apr 2023 05:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681994467; x=1684586467; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TS13ALh310CdIMTDgtD/zncYRvIAnrPNOcikTaTE12E=; b=ASQbn8wkiOWf+mtdiVr4doIsLzokbv2VKOObGe4oRvSa5lXjoWo9zcvonbseovr+xx 1t4pikmQDTMBvbtCVige1oDqDHnIaZg5DHQiLXGtez9Lrirx/s/vDWuYNXBVgxOVHIKu Hz2O3T8nAICtjiyFsGhpoTIM9PcxZAu+oCUn6Lcy2ip4rUbdynMheZtYXK7sG0tQeJex ndspFMFuJ6N0vb+KE1Zn1vvc4QPJcETPIqnrxUD0iJepET+GXkX9MvySVHTNjuMSUYTQ FEQRfX0nKGEW2U2yjXS3bjVOl7Ws6gCR3WszyPbGFre+mcB3hIGSHKPaYnjlMe/ZZYRy Jf/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681994467; x=1684586467; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TS13ALh310CdIMTDgtD/zncYRvIAnrPNOcikTaTE12E=; b=dqJI33jVvjUTswg3xJ6TtPtyjbl1ft50aypYu0EOtOQJcEFsPcOr8e9/QWkTecFoWz LSJvJeIM9JThybsgAhCbYJNDoqdgR2tr7Y7EcjVXNtGk8p4K9gYip7nnceC18M7rgwEO C4G1qkF8JJSDo2/v3ST/GeS31qAMgYJqe9vZNHyuXVsyhDcaFD1R2sI3D4WT42Qw9AgB Iph2q2NgLvM7whvdNpwJeazCUUhiMytxzXkP4y3XCK5/hRv5IY6HG1gc1vSrib4z/55H U7irfbsTYdkqySdQ5VusHeWkTpuFLMOrRJQ9P+B17ZKceMtvfEWC87UiLazN6h3q6KAr xuHw== X-Gm-Message-State: AAQBX9cTMOhYN3VSK8wpTgigZD0qJcLgEKOFVAIaM8jSkMAqPKjzzLij WRtAam2Al5Yp+VrGxBs3OvjFbHJuV4JXMr14Ixj2TGg5 X-Google-Smtp-Source: AKy350as0MyHY6LGSvOi9XwY0n+7G80xwM3k5755nyyaK9AC2C+3+OfZNcjrwtyV0xfRw+qcBFODFQdu0q2vDCJBvCI= X-Received: by 2002:a81:5e43:0:b0:54f:b720:a2b0 with SMTP id s64-20020a815e43000000b0054fb720a2b0mr1011713ywb.18.1681994466248; Thu, 20 Apr 2023 05:41:06 -0700 (PDT) MIME-Version: 1.0 References: <20230419084747.suskrykkzm2ity5e@alvherre.pgsql> In-Reply-To: <20230419084747.suskrykkzm2ity5e@alvherre.pgsql> From: David Rowley Date: Fri, 21 Apr 2023 00:40:48 +1200 Message-ID: Subject: Re: Should we put command options in alphabetical order in the doc? To: Alvaro Herrera Cc: Peter Geoghegan , PostgreSQL Developers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 19 Apr 2023 at 22:04, Alvaro Herrera wrote: > > On 2023-Apr-18, Peter Geoghegan wrote: > > > While I'm certain that nobody will agree with me on every little > > detail, I have to imagine that most would find my preferred ordering > > quite understandable and unsurprising, at a high level -- this is not > > a hopelessly idiosyncratic ranking, that could just as easily have > > been generated by a PRNG. People may not easily agree that "apples are > > more important than oranges, or vice-versa", but what does it matter? > > I've really only put each option into buckets of items with *roughly* > > the same importance. All of the details beyond that don't matter to > > me, at all. > > I agree with you that roughly bucketing items is a good approach. > Within each bucket we can then sort alphabetically. If these "buckets" were subcategories, then it might be ok. I see "man grep" categorises the command line options and then sorts alphabetically within the category. If we could come up with a way of categorising the options then this would satisfy what Melanie mentioned about having the argument types listed separately. However, I'm really not sure which categories we could have. I really don't have any concrete ideas here, but I'll attempt to at least start something: Behavioral: ANALYZE DISABLE_PAGE_SKIPPING FREEZE FULL INDEX_CLEANUP ONLY_DATABASE_STATS PROCESS_MAIN PROCESS_TOAST SKIP_DATABASE_STATS SKIP_LOCKED TRUNCATE Resource Usage: BUFFER_USAGE_LIMIT PARALLEL Informational: VERBOSE Option Parameters: boolean column_name integer size table_name I'm just not sure if we have enough options to have a need to categorise them. Also, going by the categories I attempted to come up with, it just feels like "Behavioral" contains too many and "Informational" is likely only ever going to contain VERBOSE. So I'm not very happy with them. I'm not really feeling excited enough about this to even come up with a draft patch. I thought I'd send out this anyway to see if anyone can think of anything better. FWIW, vacuumdb --help has its options in alphabetical order using the abbreviated form of the option. David