Force consistent row order in contrib/test_decoding regression test.

pull/6/head
Noah Misch 11 years ago
parent 9613a1d98e
commit 7ed908be41
  1. 4
      contrib/test_decoding/expected/ddl.out
  2. 2
      contrib/test_decoding/sql/ddl.sql

@ -196,11 +196,11 @@ COMMIT;
SELECT count(*), min(data), max(data) SELECT count(*), min(data), max(data)
FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0') FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0')
GROUP BY substring(data, 1, 24) GROUP BY substring(data, 1, 24)
ORDER BY 1; ORDER BY 1,2;
count | min | max count | min | max
-------+-------------------------------------------------+------------------------------------------------------------------------ -------+-------------------------------------------------+------------------------------------------------------------------------
1 | COMMIT | COMMIT
1 | BEGIN | BEGIN 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 20467 | table public.tr_etoomuch: DELETE: id[integer]:1 | table public.tr_etoomuch: UPDATE: id[integer]:9999 data[integer]:-9999
(3 rows) (3 rows)

@ -112,7 +112,7 @@ COMMIT;
SELECT count(*), min(data), max(data) SELECT count(*), min(data), max(data)
FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0') FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0')
GROUP BY substring(data, 1, 24) GROUP BY substring(data, 1, 24)
ORDER BY 1; ORDER BY 1,2;
/* /*
* check whether we decode subtransactions correctly in relation with each * check whether we decode subtransactions correctly in relation with each

Loading…
Cancel
Save