mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 14:46:29 +00:00
If a PostgreSQL instance was shut down while repmgrd was running, and repmgrd was subsequently restarted (this chain of events could occur during e.g. a server reboot), the node record will have been set to "inactive". Previously, in this case repmgrd would refuse to start up. However, as we can determine the node is running, it should normally be no problem to automatically set the node record to "active". The old behaviour can be restored by setting the new parameter "repmgrd_exit_on_inactive_node" to "true". RM19604.
31 lines
1.0 KiB
C
31 lines
1.0 KiB
C
/*
|
|
* repmgrd-physical.h
|
|
* Copyright (c) EnterpriseDB Corporation, 2010-2021
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef _REPMGRD_PHYSICAL_H_
|
|
#define _REPMGRD_PHYSICAL_H_
|
|
|
|
void do_physical_node_check(PGconn *conn);
|
|
|
|
void monitor_streaming_primary(void);
|
|
void monitor_streaming_standby(void);
|
|
void monitor_streaming_witness(void);
|
|
|
|
void handle_sigint_physical(SIGNAL_ARGS);
|
|
|
|
#endif /* _REPMGRD_PHYSICAL_H_ */
|