move _PG_* declarations to mod.h

merge-cstore-pykello
Jeff Davis 2020-09-02 10:31:10 -07:00
parent ba506acd35
commit 59d5d96170
3 changed files with 22 additions and 4 deletions

View File

@ -266,10 +266,6 @@ typedef struct TableWriteState
} TableWriteState;
/* Function declarations for extension loading and unloading */
extern void _PG_init(void);
extern void _PG_fini(void);
extern CompressionType ParseCompressionType(const char *compressionTypeString);
extern void InitializeCStoreTableFile(Oid relationId, Relation relation,
CStoreOptions *cstoreOptions);

1
mod.c
View File

@ -13,6 +13,7 @@
#include "postgres.h"
#include "mod.h"
#include "cstore_fdw.h"
PG_MODULE_MAGIC;

21
mod.h Normal file
View File

@ -0,0 +1,21 @@
/*-------------------------------------------------------------------------
*
* mod.h
*
* Type and function declarations for CStore
*
* Copyright (c) 2016, Citus Data, Inc.
*
* $Id$
*
*-------------------------------------------------------------------------
*/
#ifndef MOD_H
#define MOD_H
/* Function declarations for extension loading and unloading */
extern void _PG_init(void);
extern void _PG_fini(void);
#endif /* MOD_H */