pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Michael Banck <michael.banck@credativ.de>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Why does pg_checksums -r not have a long option?
Date: Sun, 9 Jun 2019 13:02:33 +0200
Message-ID: <20190609110233.mgmtl7h4rvyuntdk@development> (raw)
In-Reply-To: <20190606090121.GC10729@paquier.xyz>
References: <97045260-fb9e-e145-a950-cf7d28c4eaea@2ndquadrant.com>
	<alpine.DEB.2.21.1905260832240.27800@lancre>
	<20190527015204.GC1963@paquier.xyz>
	<CBC19466-EDA3-4E10-9FC6-F293004D32EB@yesql.se>
	<20190527081743.GC31167@nighthawk.caipicrew.dd-dns.de>
	<20190528025648.GA1348@paquier.xyz>
	<031dc90a-0d2c-69f3-b219-88197a6968f2@2ndquadrant.com>
	<20190606090121.GC10729@paquier.xyz>

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






view thread (15+ messages)

Message-ID: <20190609110233.mgmtl7h4rvyuntdk@development>
Permalink:  ../20190609110233.mgmtl7h4rvyuntdk@development/
Also on:    postgresql.org/message-id/20190609110233.mgmtl7h4rvyuntdk@development

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com, michael@paquier.xyz, peter.eisentraut@2ndquadrant.com, michael.banck@credativ.de, daniel@yesql.se, coelho@cri.ensmp.fr
  Subject: Re: Why does pg_checksums -r not have a long option?
  In-Reply-To: <20190609110233.mgmtl7h4rvyuntdk@development>
  References: <97045260-fb9e-e145-a950-cf7d28c4eaea@2ndquadrant.com> <alpine.DEB.2.21.1905260832240.27800@lancre> <20190527015204.GC1963@paquier.xyz> <CBC19466-EDA3-4E10-9FC6-F293004D32EB@yesql.se> <20190527081743.GC31167@nighthawk.caipicrew.dd-dns.de> <20190528025648.GA1348@paquier.xyz> <031dc90a-0d2c-69f3-b219-88197a6968f2@2ndquadrant.com> <20190606090121.GC10729@paquier.xyz> <20190609110233.mgmtl7h4rvyuntdk@development>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox