mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-04 14:57:20 +02:00
Protect against collation variations in test
Discussion: https://postgr.es/m/YW/MYdSRQZtPFBWR@paquier.xyz
This commit is contained in:
parent
1539e0ecd6
commit
3c8c49945d
@ -243,7 +243,7 @@ ALTER INDEX alter_idx_rename_test_parted RENAME TO alter_idx_rename_test_parted_
|
|||||||
SELECT relation::regclass, mode FROM pg_locks
|
SELECT relation::regclass, mode FROM pg_locks
|
||||||
WHERE pid = pg_backend_pid() AND locktype = 'relation'
|
WHERE pid = pg_backend_pid() AND locktype = 'relation'
|
||||||
AND relation::regclass::text LIKE 'alter\_idx%'
|
AND relation::regclass::text LIKE 'alter\_idx%'
|
||||||
ORDER BY relation::regclass::text;
|
ORDER BY relation::regclass::text COLLATE "C";
|
||||||
relation | mode
|
relation | mode
|
||||||
--------------------------------+---------------------
|
--------------------------------+---------------------
|
||||||
alter_idx_rename_test_2 | AccessExclusiveLock
|
alter_idx_rename_test_2 | AccessExclusiveLock
|
||||||
@ -257,7 +257,7 @@ ALTER INDEX alter_idx_rename_test_parted_idx RENAME TO alter_idx_rename_test_par
|
|||||||
SELECT relation::regclass, mode FROM pg_locks
|
SELECT relation::regclass, mode FROM pg_locks
|
||||||
WHERE pid = pg_backend_pid() AND locktype = 'relation'
|
WHERE pid = pg_backend_pid() AND locktype = 'relation'
|
||||||
AND relation::regclass::text LIKE 'alter\_idx%'
|
AND relation::regclass::text LIKE 'alter\_idx%'
|
||||||
ORDER BY relation::regclass::text;
|
ORDER BY relation::regclass::text COLLATE "C";
|
||||||
relation | mode
|
relation | mode
|
||||||
------------------------------------+--------------------------
|
------------------------------------+--------------------------
|
||||||
alter_idx_rename_test_idx_2 | ShareUpdateExclusiveLock
|
alter_idx_rename_test_idx_2 | ShareUpdateExclusiveLock
|
||||||
@ -271,7 +271,7 @@ ALTER TABLE alter_idx_rename_test_parted_idx_2 RENAME TO alter_idx_rename_test_p
|
|||||||
SELECT relation::regclass, mode FROM pg_locks
|
SELECT relation::regclass, mode FROM pg_locks
|
||||||
WHERE pid = pg_backend_pid() AND locktype = 'relation'
|
WHERE pid = pg_backend_pid() AND locktype = 'relation'
|
||||||
AND relation::regclass::text LIKE 'alter\_idx%'
|
AND relation::regclass::text LIKE 'alter\_idx%'
|
||||||
ORDER BY relation::regclass::text;
|
ORDER BY relation::regclass::text COLLATE "C";
|
||||||
relation | mode
|
relation | mode
|
||||||
------------------------------------+---------------------
|
------------------------------------+---------------------
|
||||||
alter_idx_rename_test_idx_3 | AccessExclusiveLock
|
alter_idx_rename_test_idx_3 | AccessExclusiveLock
|
||||||
|
@ -238,7 +238,7 @@ ALTER INDEX alter_idx_rename_test_parted RENAME TO alter_idx_rename_test_parted_
|
|||||||
SELECT relation::regclass, mode FROM pg_locks
|
SELECT relation::regclass, mode FROM pg_locks
|
||||||
WHERE pid = pg_backend_pid() AND locktype = 'relation'
|
WHERE pid = pg_backend_pid() AND locktype = 'relation'
|
||||||
AND relation::regclass::text LIKE 'alter\_idx%'
|
AND relation::regclass::text LIKE 'alter\_idx%'
|
||||||
ORDER BY relation::regclass::text;
|
ORDER BY relation::regclass::text COLLATE "C";
|
||||||
COMMIT;
|
COMMIT;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
ALTER INDEX alter_idx_rename_test_idx RENAME TO alter_idx_rename_test_idx_2;
|
ALTER INDEX alter_idx_rename_test_idx RENAME TO alter_idx_rename_test_idx_2;
|
||||||
@ -246,7 +246,7 @@ ALTER INDEX alter_idx_rename_test_parted_idx RENAME TO alter_idx_rename_test_par
|
|||||||
SELECT relation::regclass, mode FROM pg_locks
|
SELECT relation::regclass, mode FROM pg_locks
|
||||||
WHERE pid = pg_backend_pid() AND locktype = 'relation'
|
WHERE pid = pg_backend_pid() AND locktype = 'relation'
|
||||||
AND relation::regclass::text LIKE 'alter\_idx%'
|
AND relation::regclass::text LIKE 'alter\_idx%'
|
||||||
ORDER BY relation::regclass::text;
|
ORDER BY relation::regclass::text COLLATE "C";
|
||||||
COMMIT;
|
COMMIT;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
ALTER TABLE alter_idx_rename_test_idx_2 RENAME TO alter_idx_rename_test_idx_3;
|
ALTER TABLE alter_idx_rename_test_idx_2 RENAME TO alter_idx_rename_test_idx_3;
|
||||||
@ -254,7 +254,7 @@ ALTER TABLE alter_idx_rename_test_parted_idx_2 RENAME TO alter_idx_rename_test_p
|
|||||||
SELECT relation::regclass, mode FROM pg_locks
|
SELECT relation::regclass, mode FROM pg_locks
|
||||||
WHERE pid = pg_backend_pid() AND locktype = 'relation'
|
WHERE pid = pg_backend_pid() AND locktype = 'relation'
|
||||||
AND relation::regclass::text LIKE 'alter\_idx%'
|
AND relation::regclass::text LIKE 'alter\_idx%'
|
||||||
ORDER BY relation::regclass::text;
|
ORDER BY relation::regclass::text COLLATE "C";
|
||||||
COMMIT;
|
COMMIT;
|
||||||
DROP TABLE alter_idx_rename_test_2;
|
DROP TABLE alter_idx_rename_test_2;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user