repmgr: escape parameter values in primary_conninfo, if required

Addresses GitHub #253.
This commit is contained in:
Ian Barwick
2016-12-21 17:07:59 +09:00
parent 062af91d36
commit 666e71a589
6 changed files with 153 additions and 7 deletions

26
escape.h Normal file
View File

@@ -0,0 +1,26 @@
/*
* escape.h
* Copyright (c) 2ndQuadrant, 2010-2016
*
* 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 _ESCAPE_H_
#define _ESCAPE_H_
extern void
appendConnStrVal(PQExpBuffer buf, const char *str);
#endif