mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 15:16:29 +00:00
Move out string operations to another file, and introduce a frontend to snprintf for various situations. This change is important for catching and eliminating sprintf overflows, which are as of now many times silently corrupting memory. Signed-off-by: Dan Farina <drfarina@acm.org> Signed-off-by: Peter van Hardenberg <pvh@heroku.com>
26 lines
339 B
C
26 lines
339 B
C
/*
|
|
* repmgr.h
|
|
*
|
|
* Copyright (c) 2ndQuadrant, 2010
|
|
* Copyright (c) Heroku, 2010
|
|
*
|
|
*/
|
|
|
|
#ifndef _REPMGR_H_
|
|
#define _REPMGR_H_
|
|
|
|
#include "postgres_fe.h"
|
|
#include "getopt_long.h"
|
|
#include "libpq-fe.h"
|
|
|
|
#include "dbutils.h"
|
|
#include "config.h"
|
|
|
|
|
|
#define PRIMARY_MODE 0
|
|
#define STANDBY_MODE 1
|
|
|
|
#define CONFIG_FILE "repmgr.conf"
|
|
|
|
#endif
|