[HACKERS] [PATCH] Make ExplainBeginGroup()/ExplainEndGroup() public. - Mailing list pgsql-hackers

From Hadi Moshayedi
Subject [HACKERS] [PATCH] Make ExplainBeginGroup()/ExplainEndGroup() public.
Date
Msg-id CA+_kT_cCew4OKqTL-ueNndEL1jWYu+3e9RdLZP-_WR1KbONzfA@mail.gmail.com
Whole thread Raw
Responses Re: [HACKERS] [PATCH] Make ExplainBeginGroup()/ExplainEndGroup() public.
Re: [HACKERS] [PATCH] Make ExplainBeginGroup()/ExplainEndGroup()public.
List pgsql-hackers
Hello,

The attached patch moves declarations of ExplainBeginGroup()/ExplainEndGroup() from explain.c to explain.h.

This can be useful for extensions that need explain groups in their custom-scan explain output.

For example, Citus uses groups in its custom explain outputs [1]. But it achieves it by having a copy of
ExplainBeginGroup()/ExplainEndGroup() in its source code, which is not the best way.

Please review.
Thanks,
Hadi

Attachment

pgsql-hackers by date:

Previous
From: Yugo Nagata
Date:
Subject: Re: [HACKERS] [PATCH] A hook for session start
Next
From: "Joshua D. Drake"
Date:
Subject: Re: [HACKERS] autovacuum can't keep up, bloat just continues to rise