Force consistent row order in contrib/test_decoding regression test.
authorNoah Misch
Sat, 29 Mar 2014 04:31:44 +0000 (00:31 -0400)
committerNoah Misch
Sat, 29 Mar 2014 04:31:44 +0000 (00:31 -0400)
contrib/test_decoding/expected/ddl.out
contrib/test_decoding/sql/ddl.sql

index 4d25a28b933bc832f84cc8a94ca0295e1be5b959..3369f2771d32a8e55b57f21e4e4c1ea450358c94 100644 (file)
@@ -196,11 +196,11 @@ COMMIT;
 SELECT count(*), min(data), max(data)
 FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0')
 GROUP BY substring(data, 1, 24)
-ORDER BY 1;
+ORDER BY 1,2;
  count |                       min                       |                                  max                                   
 -------+-------------------------------------------------+------------------------------------------------------------------------
-     1 | COMMIT                                          | COMMIT
      1 | BEGIN                                           | BEGIN
+     1 | COMMIT                                          | COMMIT
  20467 | table public.tr_etoomuch: DELETE: id[integer]:1 | table public.tr_etoomuch: UPDATE: id[integer]:9999 data[integer]:-9999
 (3 rows)
 
index f412d40b15d1651d0bc9883d60f5d0b9c113754f..555a59c5adfc10824a6a5894f93b29787cd6cbe6 100644 (file)
@@ -112,7 +112,7 @@ COMMIT;
 SELECT count(*), min(data), max(data)
 FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0')
 GROUP BY substring(data, 1, 24)
-ORDER BY 1;
+ORDER BY 1,2;
 
 /*
  * check whether we decode subtransactions correctly in relation with each