Fix header inclusion order in xloginsert.c with lz4.h

Per project policy, all system and library headers need to be declared
in the backend code after "postgres.h" and before the internal headers,
but 4035cd5 broke this policy when adding support for LZ4 in
wal_compression.

Noticed while reviewing the patch to add support for zstd in this area.
This only impacts HEAD, so there is no need for a back-patch.
This commit is contained in:
Michael Paquier 2022-03-11 10:59:47 +09:00
parent 352d297dc7
commit 0071fc7127
1 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,10 @@
#include "postgres.h"
#ifdef USE_LZ4
#include <lz4.h>
#endif
#include "access/xact.h"
#include "access/xlog.h"
#include "access/xlog_internal.h"
@ -38,7 +42,6 @@
* backup block image.
*/
#ifdef USE_LZ4
#include <lz4.h>
#define LZ4_MAX_BLCKSZ LZ4_COMPRESSBOUND(BLCKSZ)
#else
#define LZ4_MAX_BLCKSZ 0