From e052ef7b9ac73e2fe3e3d465712e1527b571e94f Mon Sep 17 00:00:00 2001 From: Pavan Deolasee Date: Fri, 22 Jan 2016 09:06:47 +0530 Subject: [PATCH] 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 --- src/test/regress/pg_regress.c | 5 +++++ 1 file changed, 5 insertions(+) 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)); -- 2.39.5