Makefiles and placeholder code

This commit is contained in:
Ian Barwick
2017-04-18 11:26:51 +09:00
parent 4a830b14b9
commit e6237cc81a
12 changed files with 1380 additions and 8 deletions

46
repmgr.c Normal file
View File

@@ -0,0 +1,46 @@
/*
* repmgr.c - repmgr extension
*
* Copyright (c) 2ndQuadrant, 2010-2017
*
* This is the actual extension code; see repmgr-client.c for the code which
* generates the repmgr binary
*/
#include "postgres.h"
#include "fmgr.h"
#include "access/xlog.h"
#include "miscadmin.h"
#include "replication/walreceiver.h"
#include "storage/ipc.h"
#include "storage/lwlock.h"
#include "storage/procarray.h"
#include "storage/shmem.h"
#include "storage/spin.h"
#include "utils/builtins.h"
#include "utils/timestamp.h"
#define MAXFNAMELEN 64
PG_MODULE_MAGIC;
void _PG_init(void);
void _PG_fini(void);
/*
* Module load callback
*/
void
_PG_init(void)
{
elog(INFO, "repmgr init");
}
/*
* Module unload callback
*/
void
_PG_fini(void)
{
elog(INFO, "repmgr fini");
}