Avoid including explain.h in explain_format.h and explain_dr.h
authorRobert Haas <rhaas@postgresql.org>
Fri, 28 Feb 2025 18:17:29 +0000 (13:17 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 28 Feb 2025 18:17:29 +0000 (13:17 -0500)
commit77cb08be510623421fc727f35980de5107eea735
tree385d6bcd72c1a82713bdc51e68f456189d7aadbf
parent51d3e279c3e1f6548794d5e7b5206ad1e080568f
Avoid including explain.h in explain_format.h and explain_dr.h

As per a suggestion from Tom Lane, we do this by declaring "struct
ExplainState" here and refer to that rather than "ExplainState".

Also per Tom, CreateExplainSerializeDestReceiver was still defined
in explain.h in addition to explain_dr.h. Remove leftover prototype.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: http://postgr.es/m/CA+TgmoYtaad3i21V0jqua-fbr+CR0ix6uBvEX8_s6BG96abd=g@mail.gmail.com
src/backend/commands/explain_dr.c
src/backend/tcop/dest.c
src/include/commands/explain.h
src/include/commands/explain_dr.h
src/include/commands/explain_format.h