pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add flag values in WAL description to all heap records
5+ messages / 2 participants
[nested] [flat]

* pgsql: Add flag values in WAL description to all heap records
@ 2018-11-14 01:33 Michael Paquier <michael@paquier.xyz>
  2018-11-14 14:02 ` Re: pgsql: Add flag values in WAL description to all heap records Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Michael Paquier @ 2018-11-14 01:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add flag values in WAL description to all heap records

Hexadecimal is consistently used as format to not bloat too much the
output but keep it readable.  This information is useful mainly for
debugging purposes with for example pg_waldump.

Author: Michael Paquier
Reviewed-by: Nathan Bossart, Dmitry Dolgov, Andres Freund, Álvaro
Herrera
Discussion: https://postgr.es/m/20180413034734.GE1552@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3be97b97ed37b966173f027091f21d8a7605e2a5

Modified Files
--------------
src/backend/access/rmgrdesc/heapdesc.c | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Add flag values in WAL description to all heap records
  2018-11-14 01:33 pgsql: Add flag values in WAL description to all heap records Michael Paquier <michael@paquier.xyz>
@ 2018-11-14 14:02 ` Alvaro Herrera <alvherre@2ndquadrant.com>
  2018-11-15 01:13   ` Re: pgsql: Add flag values in WAL description to all heap records Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 5+ messages in thread

From: Alvaro Herrera @ 2018-11-14 14:02 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: pgsql-committers@lists.postgresql.org

On 2018-Nov-14, Michael Paquier wrote:

> Add flag values in WAL description to all heap records
> 
> Hexadecimal is consistently used as format to not bloat too much the
> output but keep it readable.  This information is useful mainly for
> debugging purposes with for example pg_waldump.

Just noticed: ISTM we should also print the infobits_set flags in
xl_heap_lock and xl_heap_lock_updated.  I can add those.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Add flag values in WAL description to all heap records
  2018-11-14 01:33 pgsql: Add flag values in WAL description to all heap records Michael Paquier <michael@paquier.xyz>
  2018-11-14 14:02 ` Re: pgsql: Add flag values in WAL description to all heap records Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2018-11-15 01:13   ` Michael Paquier <michael@paquier.xyz>
  2018-11-15 15:33     ` Re: pgsql: Add flag values in WAL description to all heap records Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Michael Paquier @ 2018-11-15 01:13 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-committers@lists.postgresql.org

On Wed, Nov 14, 2018 at 11:02:46AM -0300, Alvaro Herrera wrote:
> Just noticed: ISTM we should also print the infobits_set flags in
> xl_heap_lock and xl_heap_lock_updated.  I can add those.

OK, feel free to do so if you have time, or I can add them myself if
you would like me to do so.  Another thing I was wondering is if we
should show the information of individual tuples data for
XLOG_HEAP2_FREEZE_PAGE records (under a different option?).
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Add flag values in WAL description to all heap records
  2018-11-14 01:33 pgsql: Add flag values in WAL description to all heap records Michael Paquier <michael@paquier.xyz>
  2018-11-14 14:02 ` Re: pgsql: Add flag values in WAL description to all heap records Alvaro Herrera <alvherre@2ndquadrant.com>
  2018-11-15 01:13   ` Re: pgsql: Add flag values in WAL description to all heap records Michael Paquier <michael@paquier.xyz>
@ 2018-11-15 15:33     ` Alvaro Herrera <alvherre@2ndquadrant.com>
  2018-11-15 22:43       ` Re: pgsql: Add flag values in WAL description to all heap records Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 5+ messages in thread

From: Alvaro Herrera @ 2018-11-15 15:33 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: pgsql-hackers@lists.postgresql.org

On 2018-Nov-15, Michael Paquier wrote:

> On Wed, Nov 14, 2018 at 11:02:46AM -0300, Alvaro Herrera wrote:
> > Just noticed: ISTM we should also print the infobits_set flags in
> > xl_heap_lock and xl_heap_lock_updated.  I can add those.
> 
> OK, feel free to do so if you have time, or I can add them myself if
> you would like me to do so.

Now that I re-check, it's already done.  Sorry for the noise.

> Another thing I was wondering is if we should show the information of
> individual tuples data for XLOG_HEAP2_FREEZE_PAGE records (under a
> different option?).

Not sure.  Won't that become too verbose?  I don't remember needing that
info for debugging.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Add flag values in WAL description to all heap records
  2018-11-14 01:33 pgsql: Add flag values in WAL description to all heap records Michael Paquier <michael@paquier.xyz>
  2018-11-14 14:02 ` Re: pgsql: Add flag values in WAL description to all heap records Alvaro Herrera <alvherre@2ndquadrant.com>
  2018-11-15 01:13   ` Re: pgsql: Add flag values in WAL description to all heap records Michael Paquier <michael@paquier.xyz>
  2018-11-15 15:33     ` Re: pgsql: Add flag values in WAL description to all heap records Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2018-11-15 22:43       ` Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 5+ messages in thread

From: Michael Paquier @ 2018-11-15 22:43 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-hackers@lists.postgresql.org

On Thu, Nov 15, 2018 at 12:33:35PM -0300, Alvaro Herrera wrote:
> Not sure.  Won't that become too verbose?  I don't remember needing that
> info for debugging.

Okay, let's drop this idea then.  I haven't needed that myself until
now.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2018-11-15 22:43 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-14 01:33 pgsql: Add flag values in WAL description to all heap records Michael Paquier <michael@paquier.xyz>
2018-11-14 14:02 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2018-11-15 01:13   ` Michael Paquier <michael@paquier.xyz>
2018-11-15 15:33     ` Alvaro Herrera <alvherre@2ndquadrant.com>
2018-11-15 22:43       ` Michael Paquier <michael@paquier.xyz>

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