[PATCH] Make ExplainOpenGroup()/ExplainCloseGroup() available for extensions.

From: Hadi Moshayedi <hadi(at)citusdata(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] Make ExplainOpenGroup()/ExplainCloseGroup() available for extensions.
Date: 2017-07-25 14:27:33
Message-ID: CA+_kT_dU-rHCN0u6pjA6bN5CZniMfD=-wVqPY4QLrKUY_uJq5w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

[1] https://github.com/citusdata/citus/blob/master/src/backend/
distributed/planner/multi_explain.c

Thanks,
Hadi

Attachment Content-Type Size
make_explainopenclosegroup_public.patch text/x-patch 2.1 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Mat Arye 2017-07-25 14:30:33 Re: Fwd: Syncing sql extension versions with shared library versions
Previous Message Robert Haas 2017-07-25 14:23:37 Re: pl/perl extension fails on Windows