|
34 | 34 | #include"getopt_long.h"
|
35 | 35 | #include"libpq/pqcomm.h"/* needed for UNIXSOCK_PATH() */
|
36 | 36 | #include"pg_config_paths.h"
|
| 37 | +#include"pg_config.h" |
37 | 38 |
|
38 | 39 | /* for resultmap we need a list of pairs of strings */
|
39 | 40 | typedefstruct_resultmap
|
@@ -73,6 +74,7 @@ char *inputdir = ".";
|
73 | 74 | char*outputdir=".";
|
74 | 75 | char*bindir=PGBINDIR;
|
75 | 76 | char*launcher=NULL;
|
| 77 | +char*xid_options=NULL; |
76 | 78 | static_stringlist*loadlanguage=NULL;
|
77 | 79 | static_stringlist*loadextension=NULL;
|
78 | 80 | staticintmax_connections=0;
|
@@ -2215,13 +2217,17 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
|
2215 | 2217 |
|
2216 | 2218 | /* initdb */
|
2217 | 2219 | header(_("initializing database system"));
|
| 2220 | +#ifdefXID_IS_64BIT |
| 2221 | +xid_options=" -x 4294967296 -m 4294967296"; |
| 2222 | +#endif |
2218 | 2223 | snprintf(buf,sizeof(buf),
|
2219 |
| -"\"%s%sinitdb\" -D \"%s/data\" --noclean --nosync%s%s > \"%s/log/initdb.log\" 2>&1", |
| 2224 | +"\"%s%sinitdb\" -D \"%s/data\" --noclean --nosync%s%s%s > \"%s/log/initdb.log\" 2>&1", |
2220 | 2225 | bindir ?bindir :"",
|
2221 | 2226 | bindir ?"/" :"",
|
2222 | 2227 | temp_instance,
|
2223 | 2228 | debug ?" --debug" :"",
|
2224 | 2229 | nolocale ?" --no-locale" :"",
|
| 2230 | +xid_options, |
2225 | 2231 | outputdir);
|
2226 | 2232 | if (system(buf))
|
2227 | 2233 | {
|
|