From: Pavan Deolasee Date: Fri, 22 Jan 2016 03:36:47 +0000 (+0530) Subject: Set sequence_range to 1 while initialising nodes for "make check" so that X-Git-Tag: XL9_5_R1BETA1~79 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=e052ef7b9ac73e2fe3e3d465712e1527b571e94f;p=postgres-xl.git Set sequence_range to 1 while initialising nodes for "make check" so that deterministic output is obtained. This avoids explicit setting of the GUC in every test case that uses serials or sequences. For those running "make installcheck" they must set it up correctly in their postgresql.conf files. We could revert some of the changes done to the test cases (by adding sequence_range = 1), but this patch does not do that --- diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c index 1744f530e4..ed6ff7ba72 100644 --- a/src/test/regress/pg_regress.c +++ b/src/test/regress/pg_regress.c @@ -841,6 +841,11 @@ set_node_config_file(PGXCNodeTypeNum node) */ fputs("max_prepared_transactions = 50\n", pg_conf); + /* + * Set sequence_range to 1 for deterministic results + */ + fputs("sequence_range = 1\n", pg_conf); + /* Set GTM connection information */ fputs("gtm_host = 'localhost'\n", pg_conf); snprintf(buf, sizeof(buf), "gtm_port = %d\n", get_port_number(PGXC_GTM));