mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
placeholder code for function
This commit is contained in:
14
repmgr.c
14
repmgr.c
@@ -28,6 +28,9 @@ PG_MODULE_MAGIC;
|
||||
void _PG_init(void);
|
||||
void _PG_fini(void);
|
||||
|
||||
Datum request_vote(PG_FUNCTION_ARGS);
|
||||
PG_FUNCTION_INFO_V1(request_vote);
|
||||
|
||||
/*
|
||||
* Module load callback
|
||||
*/
|
||||
@@ -44,3 +47,14 @@ _PG_fini(void)
|
||||
{
|
||||
elog(INFO, "repmgr fini");
|
||||
}
|
||||
|
||||
|
||||
Datum
|
||||
request_vote(PG_FUNCTION_ARGS)
|
||||
{
|
||||
uint32 node_id = PG_GETARG_INT32(0);
|
||||
|
||||
elog(INFO, "id is %i", node_id);
|
||||
|
||||
PG_RETURN_BOOL(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user