|
|
|
@ -39,7 +39,7 @@ |
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California |
|
|
|
|
* Portions taken from FreeBSD. |
|
|
|
|
* |
|
|
|
|
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.35 2004/06/03 00:07:36 momjian Exp $ |
|
|
|
|
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.36 2004/06/10 16:35:16 momjian Exp $ |
|
|
|
|
* |
|
|
|
|
*------------------------------------------------------------------------- |
|
|
|
|
*/ |
|
|
|
@ -812,12 +812,12 @@ test_connections(void) |
|
|
|
|
for (i = 0; i < len; i++) |
|
|
|
|
{ |
|
|
|
|
snprintf(cmd, sizeof(cmd), |
|
|
|
|
"\"%s\" -boot -x0 %s " |
|
|
|
|
"%s\"%s\" -boot -x0 %s " |
|
|
|
|
"-c shared_buffers=%d -c max_connections=%d template1 " |
|
|
|
|
"<%s >%s 2>&1", |
|
|
|
|
backend_exec, boot_options, |
|
|
|
|
"< \"%s\" > \"%s\" 2>&1%s", |
|
|
|
|
SYSTEMQUOTE, backend_exec, boot_options, |
|
|
|
|
conns[i] * 5, conns[i], |
|
|
|
|
DEVNULL, DEVNULL); |
|
|
|
|
DEVNULL, DEVNULL, SYSTEMQUOTE); |
|
|
|
|
status = system(cmd); |
|
|
|
|
if (status == 0) |
|
|
|
|
break; |
|
|
|
@ -848,12 +848,12 @@ test_buffers(void) |
|
|
|
|
for (i = 0; i < len; i++) |
|
|
|
|
{ |
|
|
|
|
snprintf(cmd, sizeof(cmd), |
|
|
|
|
"\"%s\" -boot -x0 %s " |
|
|
|
|
"%s\"%s\" -boot -x0 %s " |
|
|
|
|
"-c shared_buffers=%d -c max_connections=%d template1 " |
|
|
|
|
"<%s >%s 2>&1", |
|
|
|
|
backend_exec, boot_options, |
|
|
|
|
"< \"%s\" > \"%s\" 2>&1%s", |
|
|
|
|
SYSTEMQUOTE, backend_exec, boot_options, |
|
|
|
|
bufs[i], n_connections, |
|
|
|
|
DEVNULL, DEVNULL); |
|
|
|
|
DEVNULL, DEVNULL, SYSTEMQUOTE); |
|
|
|
|
status = system(cmd); |
|
|
|
|
if (status == 0) |
|
|
|
|
break; |
|
|
|
|