prevent double inclusion of columnar_tableam.h (#5266)

Recently there are some warnings during the compilation of Citus.
Part of the warnings come due to the `columnar_tableam.h` header not being properly guarded with defines and ifndef's.

This PR fixes these warnings.
pull/5267/head
Nils Dijk 2021-09-09 17:37:58 +02:00 committed by GitHub
parent be74518965
commit 80a44a7b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#ifndef COLUMNAR_TABLEAM_H
#define COLUMNAR_TABLEAM_H
#include "citus_version.h" #include "citus_version.h"
#include "postgres.h" #include "postgres.h"
@ -60,3 +62,6 @@ extern bool ColumnarSupportsIndexAM(char *indexAMName);
extern bool IsColumnarTableAmTable(Oid relationId); extern bool IsColumnarTableAmTable(Oid relationId);
extern TableDDLCommand * ColumnarGetTableOptionsDDL(Oid relationId); extern TableDDLCommand * ColumnarGetTableOptionsDDL(Oid relationId);
extern char * GetShardedTableDDLCommandColumnar(uint64 shardId, void *context); extern char * GetShardedTableDDLCommandColumnar(uint64 shardId, void *context);
#endif /* COLUMNAR_TABLEAM_H */