Re: [HACKERS] [PATCH] pageinspect function to decode infomasks
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>, Alvaro Herrera from 2ndQuadrant <alvherre@alvh.no-ip.org>, Craig Ringer <craig@2ndquadrant.com>, Ashutosh Sharma <ashu.coek88@gmail.com>, Julien Rouhaud <rjuju123@gmail.com>, Peter Geoghegan <pg@bowt.ie>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Abhijit Menon-Sen <ams@2ndquadrant.com>, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, Pavan Deolasee <pavan.deolasee@2ndquadrant.com>
Date: 2019-09-13T03:30:41Z
Lists: pgsql-hackers
On Thu, Sep 12, 2019 at 05:24:17PM +0530, Amit Kapila wrote: > On Thu, Sep 12, 2019 at 4:48 PM Michael Paquier <michael@paquier.xyz> wrote: > Hmm, I thought when decode_combined flag is set to false means we will > display the raw flags set on the tuple without any further > interpretation. I think that is what is most people in thread > advocated about. Sorry if I created any confusion. When set to false then the raw list of flags is returned, and that's the default. The example provided in the docs is careful about that, as well as the description done for the option (at least I guess so!). > Yes, I think we could have more discussion on this point. It is not > 100% clear how we should interpret this flag and or where to draw a > line. It might be that whatever we have done is alright, but still, > it is worth more discussion and opinion from a few more people. Of course. >> decode_combined sounds like a good compromise to me. If there is a >> better consensus, well, let's use it, but I don't find those >> suggestions to be improvements. > > I think it depends on the meaning of that flag. Perhaps using "decode" is the confusing part here? It is more like a "merge" of the flags, or just a combination of them. An idea that just popped here would be to name the switch "combine_flags" instead. -- Michael
Commits
-
Redesign pageinspect function printing infomask bits
- 58b4cb30a5bf 13.0 landed
-
Add to pageinspect function to make t_infomask/t_infomask2 human-readable
- ddbd5d873161 13.0 landed
-
Improve documentation of pageinspect
- 1fb2d78cb946 10.11 landed
- 6472d7ad5d70 11.6 landed
- 08e68825c1d6 12.0 landed
- 292ae8af79b4 13.0 landed
-
Improve pageinspect module
- d6061f83a166 9.6.0 cited