[HACKERS] [PATCH] Make ExplainOpenGroup()/ExplainCloseGroup() available for extensions. - Mailing list pgsql-hackers

From Hadi Moshayedi
Subject [HACKERS] [PATCH] Make ExplainOpenGroup()/ExplainCloseGroup() available for extensions.
Date
Msg-id CA+_kT_dU-rHCN0u6pjA6bN5CZniMfD=-wVqPY4QLrKUY_uJq5w@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hello Hackers,

The attached patch moves declarations of ExplainOpenGroup()/ExplainCloseGroup() 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 ExplainOpenGroup()/ExplainCloseGroup() in its source code, which is not the best way.

Please review.
Thanks,
Hadi

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] pl/perl extension fails on Windows
Next
From: Mat Arye
Date:
Subject: Re: Fwd: [HACKERS] Syncing sql extension versions with shared library versions