/* * 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"); }