@ -49,8 +49,8 @@ static void makeAlterConfigCommand(PGconn *conn, const char *arrayitem,
const char * name2 ) ;
static void dumpDatabases ( PGconn * conn ) ;
static void dumpTimestamp ( char * msg ) ;
static void doShellQuot ing( PQExpBuffer buf , const char * str ) ;
static void doConnStrQuoting ( PQExpBuffer buf , const char * str ) ;
static void appendShellStr ing( PQExpBuffer buf , const char * str ) ;
static void appendConnStrVal ( PQExpBuffer buf , const char * str ) ;
static int runPgDump ( const char * dbname ) ;
static PGconn * connectDatabase ( const char * dbname , const char * pghost , const char * pgport ,
@ -201,7 +201,7 @@ main(int argc, char *argv[])
case ' f ' :
filename = optarg ;
appendPQExpBuffer ( pgdumpopts , " -f " ) ;
doShellQuot ing( pgdumpopts , filename ) ;
appendShellStr ing( pgdumpopts , filename ) ;
break ;
case ' g ' :
@ -211,7 +211,7 @@ main(int argc, char *argv[])
case ' h ' :
pghost = optarg ;
appendPQExpBuffer ( pgdumpopts , " -h " ) ;
doShellQuot ing( pgdumpopts , pghost ) ;
appendShellStr ing( pgdumpopts , pghost ) ;
break ;
case ' i ' :
@ -233,7 +233,7 @@ main(int argc, char *argv[])
case ' p ' :
pgport = optarg ;
appendPQExpBuffer ( pgdumpopts , " -p " ) ;
doShellQuot ing( pgdumpopts , pgport ) ;
appendShellStr ing( pgdumpopts , pgport ) ;
break ;
case ' r ' :
@ -246,7 +246,7 @@ main(int argc, char *argv[])
case ' S ' :
appendPQExpBuffer ( pgdumpopts , " -S " ) ;
doShellQuot ing( pgdumpopts , optarg ) ;
appendShellStr ing( pgdumpopts , optarg ) ;
break ;
case ' t ' :
@ -256,7 +256,7 @@ main(int argc, char *argv[])
case ' U ' :
pguser = optarg ;
appendPQExpBuffer ( pgdumpopts , " -U " ) ;
doShellQuot ing( pgdumpopts , pguser ) ;
appendShellStr ing( pgdumpopts , pguser ) ;
break ;
case ' v ' :
@ -284,13 +284,13 @@ main(int argc, char *argv[])
case 2 :
appendPQExpBuffer ( pgdumpopts , " --lock-wait-timeout " ) ;
doShellQuot ing( pgdumpopts , optarg ) ;
appendShellStr ing( pgdumpopts , optarg ) ;
break ;
case 3 :
use_role = optarg ;
appendPQExpBuffer ( pgdumpopts , " --role " ) ;
doShellQuot ing( pgdumpopts , use_role ) ;
appendShellStr ing( pgdumpopts , use_role ) ;
break ;
default :
@ -1643,9 +1643,9 @@ runPgDump(const char *dbname)
* incorrectly treat it as a connection string .
*/
appendPQExpBufferStr ( connstrbuf , " dbname= " ) ;
doConnStrQuoting ( connstrbuf , dbname ) ;
appendConnStrVal ( connstrbuf , dbname ) ;
doShellQuot ing( cmd , connstrbuf - > data ) ;
appendShellStr ing( cmd , connstrbuf - > data ) ;
appendPQExpBuffer ( cmd , " %s " , SYSTEMQUOTE ) ;
@ -1888,7 +1888,7 @@ dumpTimestamp(char *msg)
* string
*/
static void
doConnStrQuoting ( PQExpBuffer buf , const char * str )
appendConnStrVal ( PQExpBuffer buf , const char * str )
{
const char * s ;
bool needquotes ;
@ -1937,7 +1937,7 @@ doConnStrQuoting(PQExpBuffer buf, const char *str)
* there eventually leads to errors here .
*/
static void
doShellQuot ing( PQExpBuffer buf , const char * str )
appendShellStr ing( PQExpBuffer buf , const char * str )
{
const char * p ;