Reduce xlog.h inclusion footprint
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 12 Oct 2022 07:44:40 +0000 (09:44 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 12 Oct 2022 07:47:11 +0000 (09:47 +0200)
commit9c0de04242a160aa1d4afeefab7d2e40efd8255d
tree26dcb453fb99707d3e74b02e359f7b788a55cf41
parentc929b2745f8cc48c0ce7dbf1fd01a8cc94d54b75
Reduce xlog.h inclusion footprint

This file needs xlogreader.h only for the XLogReaderState typedef; but
we can dodge that by forward-declaring it.  Many files use xlog.h for
reasons other than reading WAL, and it's not good to force all those
files to include xlogreader.h, so take it out.

Surprisingly, there is no fallout in core code from making this change.
Perhaps external code will have to start including xlogreader.h.
src/include/access/xlog.h