@@ -49,8 +49,8 @@ static void makeAlterConfigCommand(PGconn *conn, const char *arrayitem,
49
49
const char * name2 );
50
50
static void dumpDatabases (PGconn * conn );
51
51
static void dumpTimestamp (const char * msg );
52
- static void doShellQuoting (PQExpBuffer buf ,const char * str );
53
- static void doConnStrQuoting (PQExpBuffer buf ,const char * str );
52
+ static void appendShellString (PQExpBuffer buf ,const char * str );
53
+ static void appendConnStrVal (PQExpBuffer buf ,const char * str );
54
54
55
55
static int runPgDump (const char * dbname );
56
56
static void buildShSecLabels (PGconn * conn ,const char * catalog_name ,
@@ -214,7 +214,7 @@ main(int argc, char *argv[])
214
214
case 'f' :
215
215
filename = pg_strdup (optarg );
216
216
appendPQExpBufferStr (pgdumpopts ," -f " );
217
- doShellQuoting (pgdumpopts ,filename );
217
+ appendShellString (pgdumpopts ,filename );
218
218
break ;
219
219
220
220
case 'g' :
@@ -251,7 +251,7 @@ main(int argc, char *argv[])
251
251
252
252
case 'S' :
253
253
appendPQExpBufferStr (pgdumpopts ," -S " );
254
- doShellQuoting (pgdumpopts ,optarg );
254
+ appendShellString (pgdumpopts ,optarg );
255
255
break ;
256
256
257
257
case 't' :
@@ -287,13 +287,13 @@ main(int argc, char *argv[])
287
287
288
288
case 2 :
289
289
appendPQExpBufferStr (pgdumpopts ," --lock-wait-timeout " );
290
- doShellQuoting (pgdumpopts ,optarg );
290
+ appendShellString (pgdumpopts ,optarg );
291
291
break ;
292
292
293
293
case 3 :
294
294
use_role = pg_strdup (optarg );
295
295
appendPQExpBufferStr (pgdumpopts ," --role " );
296
- doShellQuoting (pgdumpopts ,use_role );
296
+ appendShellString (pgdumpopts ,use_role );
297
297
break ;
298
298
299
299
default :
@@ -1726,9 +1726,9 @@ runPgDump(const char *dbname)
1726
1726
* string.
1727
1727
*/
1728
1728
appendPQExpBuffer (connstrbuf ,"%s dbname=" ,connstr );
1729
- doConnStrQuoting (connstrbuf ,dbname );
1729
+ appendConnStrVal (connstrbuf ,dbname );
1730
1730
1731
- doShellQuoting (cmd ,connstrbuf -> data );
1731
+ appendShellString (cmd ,connstrbuf -> data );
1732
1732
1733
1733
if (verbose )
1734
1734
fprintf (stderr ,_ ("%s: running \"%s\"\n" ),progname ,cmd -> data );
@@ -2008,7 +2008,7 @@ constructConnStr(const char **keywords, const char **values)
2008
2008
appendPQExpBufferChar (buf ,' ' );
2009
2009
firstkeyword = false;
2010
2010
appendPQExpBuffer (buf ,"%s=" ,keywords [i ]);
2011
- doConnStrQuoting (buf ,values [i ]);
2011
+ appendConnStrVal (buf ,values [i ]);
2012
2012
}
2013
2013
2014
2014
connstr = pg_strdup (buf -> data );
@@ -2089,7 +2089,7 @@ dumpTimestamp(const char *msg)
2089
2089
* string
2090
2090
*/
2091
2091
static void
2092
- doConnStrQuoting (PQExpBuffer buf ,const char * str )
2092
+ appendConnStrVal (PQExpBuffer buf ,const char * str )
2093
2093
{
2094
2094
const char * s ;
2095
2095
bool needquotes ;
@@ -2138,7 +2138,7 @@ doConnStrQuoting(PQExpBuffer buf, const char *str)
2138
2138
* there eventually leads to errors here.
2139
2139
*/
2140
2140
static void
2141
- doShellQuoting (PQExpBuffer buf ,const char * str )
2141
+ appendShellString (PQExpBuffer buf ,const char * str )
2142
2142
{
2143
2143
const char * p ;
2144
2144