mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08:00
Make contrib/test_decoding regression tests safe for CZ locale.
A little COLLATE "C" goes a long way. Pavel Stehule, per suggestion from Craig Ringer Discussion: <CAFj8pRA8nJZcozgxN=RMSqMmKuHVOkcGAAKPKdFeiMWGDSUDLA@mail.gmail.com>
This commit is contained in:
parent
ae92a9a380
commit
e2a0ee6900
@ -164,7 +164,7 @@ SAVEPOINT s2;
|
||||
INSERT INTO spill_test SELECT 'serialize-subsmall-subbig--2:'||g.i FROM generate_series(2, 5001) g(i);
|
||||
RELEASE SAVEPOINT s2;
|
||||
COMMIT;
|
||||
SELECT (regexp_split_to_array(data, ':'))[4], COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
SELECT (regexp_split_to_array(data, ':'))[4] COLLATE "C", COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL) WHERE data ~ 'INSERT'
|
||||
GROUP BY 1 ORDER BY 1;
|
||||
regexp_split_to_array | count | array_agg | array_agg
|
||||
@ -182,7 +182,7 @@ INSERT INTO spill_test SELECT 'serialize-nested-subbig-subbig--2:'||g.i FROM gen
|
||||
RELEASE SAVEPOINT s2;
|
||||
RELEASE SAVEPOINT s1;
|
||||
COMMIT;
|
||||
SELECT (regexp_split_to_array(data, ':'))[4], COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
SELECT (regexp_split_to_array(data, ':'))[4] COLLATE "C", COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL) WHERE data ~ 'INSERT'
|
||||
GROUP BY 1 ORDER BY 1;
|
||||
regexp_split_to_array | count | array_agg | array_agg
|
||||
@ -200,7 +200,7 @@ INSERT INTO spill_test SELECT 'serialize-nested-subbig-subsmall--2:'||g.i FROM g
|
||||
RELEASE SAVEPOINT s2;
|
||||
RELEASE SAVEPOINT s1;
|
||||
COMMIT;
|
||||
SELECT (regexp_split_to_array(data, ':'))[4], COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
SELECT (regexp_split_to_array(data, ':'))[4] COLLATE "C", COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL) WHERE data ~ 'INSERT'
|
||||
GROUP BY 1 ORDER BY 1;
|
||||
regexp_split_to_array | count | array_agg | array_agg
|
||||
@ -218,7 +218,7 @@ INSERT INTO spill_test SELECT 'serialize-nested-subsmall-subbig--2:'||g.i FROM g
|
||||
RELEASE SAVEPOINT s2;
|
||||
RELEASE SAVEPOINT s1;
|
||||
COMMIT;
|
||||
SELECT (regexp_split_to_array(data, ':'))[4], COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
SELECT (regexp_split_to_array(data, ':'))[4] COLLATE "C", COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL) WHERE data ~ 'INSERT'
|
||||
GROUP BY 1 ORDER BY 1;
|
||||
regexp_split_to_array | count | array_agg | array_agg
|
||||
@ -238,7 +238,7 @@ SAVEPOINT s3;
|
||||
INSERT INTO spill_test SELECT 'serialize-nested-subbig-subbigabort-subbig-3:'||g.i FROM generate_series(5001, 10000) g(i);
|
||||
RELEASE SAVEPOINT s1;
|
||||
COMMIT;
|
||||
SELECT (regexp_split_to_array(data, ':'))[4], COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
SELECT (regexp_split_to_array(data, ':'))[4] COLLATE "C", COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL) WHERE data ~ 'INSERT'
|
||||
GROUP BY 1 ORDER BY 1;
|
||||
regexp_split_to_array | count | array_agg | array_agg
|
||||
|
@ -116,7 +116,7 @@ SAVEPOINT s2;
|
||||
INSERT INTO spill_test SELECT 'serialize-subsmall-subbig--2:'||g.i FROM generate_series(2, 5001) g(i);
|
||||
RELEASE SAVEPOINT s2;
|
||||
COMMIT;
|
||||
SELECT (regexp_split_to_array(data, ':'))[4], COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
SELECT (regexp_split_to_array(data, ':'))[4] COLLATE "C", COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL) WHERE data ~ 'INSERT'
|
||||
GROUP BY 1 ORDER BY 1;
|
||||
|
||||
@ -129,7 +129,7 @@ INSERT INTO spill_test SELECT 'serialize-nested-subbig-subbig--2:'||g.i FROM gen
|
||||
RELEASE SAVEPOINT s2;
|
||||
RELEASE SAVEPOINT s1;
|
||||
COMMIT;
|
||||
SELECT (regexp_split_to_array(data, ':'))[4], COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
SELECT (regexp_split_to_array(data, ':'))[4] COLLATE "C", COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL) WHERE data ~ 'INSERT'
|
||||
GROUP BY 1 ORDER BY 1;
|
||||
|
||||
@ -142,7 +142,7 @@ INSERT INTO spill_test SELECT 'serialize-nested-subbig-subsmall--2:'||g.i FROM g
|
||||
RELEASE SAVEPOINT s2;
|
||||
RELEASE SAVEPOINT s1;
|
||||
COMMIT;
|
||||
SELECT (regexp_split_to_array(data, ':'))[4], COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
SELECT (regexp_split_to_array(data, ':'))[4] COLLATE "C", COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL) WHERE data ~ 'INSERT'
|
||||
GROUP BY 1 ORDER BY 1;
|
||||
|
||||
@ -155,7 +155,7 @@ INSERT INTO spill_test SELECT 'serialize-nested-subsmall-subbig--2:'||g.i FROM g
|
||||
RELEASE SAVEPOINT s2;
|
||||
RELEASE SAVEPOINT s1;
|
||||
COMMIT;
|
||||
SELECT (regexp_split_to_array(data, ':'))[4], COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
SELECT (regexp_split_to_array(data, ':'))[4] COLLATE "C", COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL) WHERE data ~ 'INSERT'
|
||||
GROUP BY 1 ORDER BY 1;
|
||||
|
||||
@ -170,7 +170,7 @@ SAVEPOINT s3;
|
||||
INSERT INTO spill_test SELECT 'serialize-nested-subbig-subbigabort-subbig-3:'||g.i FROM generate_series(5001, 10000) g(i);
|
||||
RELEASE SAVEPOINT s1;
|
||||
COMMIT;
|
||||
SELECT (regexp_split_to_array(data, ':'))[4], COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
SELECT (regexp_split_to_array(data, ':'))[4] COLLATE "C", COUNT(*), (array_agg(data))[1], (array_agg(data))[count(*)]
|
||||
FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL) WHERE data ~ 'INSERT'
|
||||
GROUP BY 1 ORDER BY 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user