Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hZvb6-0001ou-RU for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Jun 2019 11:02:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hZvb5-0000TC-FR for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Jun 2019 11:02:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hZvb5-0000T4-2s for pgsql-hackers@lists.postgresql.org; Sun, 09 Jun 2019 11:02:47 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hZvb1-0000jC-Ls for pgsql-hackers@postgresql.org; Sun, 09 Jun 2019 11:02:45 +0000 Received: by mail-wr1-x441.google.com with SMTP id r18so6289103wrm.10 for ; Sun, 09 Jun 2019 04:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wLNUTE4rbnxCtdixA9nPL7gyRo5cRBPZMvzGfabD81E=; b=UO4aLSNfpkX6iZtafAJvOALhGoWhPXtL5dtNFH7TZBseRf+KzNLGBWTOFlAF2KCzMR /r5PRIR57y0jkbib2PnKF4c2HPqgjTnN85/OS7HHGlWZJAMFG+y2e+MPhD7CFz2iBUR7 fiyBchAvpJYrrd+v9GMJFJtRoX6ABx4QNSWqHa1ezbDonnBYSkzjfpxjPwuxzr/6ygBi DgiNWZtXWL9BRFaVFmsSuuCUBG1GvHE1aLWeo1k+izTHW05HG+DHWnn0xqAUOzFMmr3P r7PaihQ4wuuGX23q6lqgsGVi56k0tfbv5Ascb6bQV6w2Ot93mmG3BdFrWSxIgPdpGdWV dNPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wLNUTE4rbnxCtdixA9nPL7gyRo5cRBPZMvzGfabD81E=; b=GkHe+32O9lHbquE6ZzwkTQxut8uGnQR4oh1hOAeihmreY6DOzR1DSoSjqcpzEipnAX BbTYJzVpOQXYiHDDC/4+uFdZ48jbz9NNOTMZVMA06wmpdgDbaFmNjM4LB8c5Zb/dRJ8f 9DBQg9paGnOAAx8qwc9MRWdOj6SJwsZaeMV3Y0imAKk+Xu+o0sn/Uy5oztfGPTkCZ8l4 pNuQP2RyXrxMh5X1Xu6U0uQsfZ/qNI7mPg7B1q5ow3l7B/Sul8dQG8aWMGYJs0l3W0R9 yGTv/cHTtL2LmX/mfHJk13PsL+cZm4MgHlePJIK4O/iJkSf2B242Tc0tjK2hfi/UQOZT b8mg== X-Gm-Message-State: APjAAAW740MIqGDIpH3uhAB16sWtIfnRztbbMK4S9X7gWgoNjJICJixX Ia7fyxtwT2/SpJXPtnH+cK9Wm/IrQfTttEs+ X-Google-Smtp-Source: APXvYqzr5CCjIiJPKBv9mAE3gvAbrl8KW+46+yJN7iT+oiAiqn1LfLmPPm4uUnbcjyEqYhQBWCbBlg== X-Received: by 2002:a5d:6312:: with SMTP id i18mr184537wru.203.1560078161233; Sun, 09 Jun 2019 04:02:41 -0700 (PDT) Received: from localhost (gqe223.internetdsl.tpnet.pl. [83.3.160.223]) by smtp.gmail.com with ESMTPSA id v67sm7801598wme.24.2019.06.09.04.02.36 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 09 Jun 2019 04:02:37 -0700 (PDT) Date: Sun, 9 Jun 2019 13:02:33 +0200 From: Tomas Vondra To: Michael Paquier Cc: Peter Eisentraut , Michael Banck , Daniel Gustafsson , Fabien COELHO , pgsql-hackers Subject: Re: Why does pg_checksums -r not have a long option? Message-ID: <20190609110233.mgmtl7h4rvyuntdk@development> References: <97045260-fb9e-e145-a950-cf7d28c4eaea@2ndquadrant.com> <20190527015204.GC1963@paquier.xyz> <20190527081743.GC31167@nighthawk.caipicrew.dd-dns.de> <20190528025648.GA1348@paquier.xyz> <031dc90a-0d2c-69f3-b219-88197a6968f2@2ndquadrant.com> <20190606090121.GC10729@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190606090121.GC10729@paquier.xyz> User-Agent: NeoMutt/20180716-1444-295967-dirty List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Jun 06, 2019 at 06:01:21PM +0900, Michael Paquier wrote: >On Wed, Jun 05, 2019 at 10:31:54PM +0200, Peter Eisentraut wrote: >> I think -r/--relfilenode was actually a good suggestion. Because it >> doesn't actually check a *file* but potentially several files (forks, >> segments). The -f naming makes it sound like it operates on a specific >> file. > >Hmm. I still tend to prefer the -f/--filenode interface as that's >more consistent with what we have in the documentation, where >relfilenode gets only used when referring to the pg_class attribute. >You have a point about the fork types and extra segments, but I am not >sure that --relfilenode defines that in a better way than --filenode. >-- I agree. The "rel" prefix is there mostly because the other pg_class attributes have it too (reltablespace, reltuples, ...) and we use "filenode" elsewhere. For example we have pg_relation_filenode() function, operating with exactly this piece of information. So +1 to keep the "-f/--filenode" options. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services