Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
71827885
Commit
71827885
authored
Oct 20, 2021
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect against collation variations in test
Discussion:
https://postgr.es/m/YW/MYdSRQZtPFBWR@paquier.xyz
parent
81aefaea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/test/regress/expected/alter_table.out
src/test/regress/expected/alter_table.out
+3
-3
src/test/regress/sql/alter_table.sql
src/test/regress/sql/alter_table.sql
+3
-3
No files found.
src/test/regress/expected/alter_table.out
View file @
71827885
...
...
@@ -248,7 +248,7 @@ ALTER INDEX alter_idx_rename_test_parted RENAME TO alter_idx_rename_test_parted_
SELECT relation::regclass, mode FROM pg_locks
WHERE pid = pg_backend_pid() AND locktype = 'relation'
AND relation::regclass::text LIKE 'alter\_idx%'
ORDER BY relation::regclass::text;
ORDER BY relation::regclass::text
COLLATE "C"
;
relation | mode
--------------------------------+---------------------
alter_idx_rename_test_2 | AccessExclusiveLock
...
...
@@ -262,7 +262,7 @@ ALTER INDEX alter_idx_rename_test_parted_idx RENAME TO alter_idx_rename_test_par
SELECT relation::regclass, mode FROM pg_locks
WHERE pid = pg_backend_pid() AND locktype = 'relation'
AND relation::regclass::text LIKE 'alter\_idx%'
ORDER BY relation::regclass::text;
ORDER BY relation::regclass::text
COLLATE "C"
;
relation | mode
------------------------------------+--------------------------
alter_idx_rename_test_idx_2 | ShareUpdateExclusiveLock
...
...
@@ -276,7 +276,7 @@ ALTER TABLE alter_idx_rename_test_parted_idx_2 RENAME TO alter_idx_rename_test_p
SELECT relation::regclass, mode FROM pg_locks
WHERE pid = pg_backend_pid() AND locktype = 'relation'
AND relation::regclass::text LIKE 'alter\_idx%'
ORDER BY relation::regclass::text;
ORDER BY relation::regclass::text
COLLATE "C"
;
relation | mode
------------------------------------+---------------------
alter_idx_rename_test_idx_3 | AccessExclusiveLock
...
...
src/test/regress/sql/alter_table.sql
View file @
71827885
...
...
@@ -242,7 +242,7 @@ ALTER INDEX alter_idx_rename_test_parted RENAME TO alter_idx_rename_test_parted_
SELECT
relation
::
regclass
,
mode
FROM
pg_locks
WHERE
pid
=
pg_backend_pid
()
AND
locktype
=
'relation'
AND
relation
::
regclass
::
text
LIKE
'alter
\_
idx%'
ORDER
BY
relation
::
regclass
::
text
;
ORDER
BY
relation
::
regclass
::
text
COLLATE
"C"
;
COMMIT
;
BEGIN
;
ALTER
INDEX
alter_idx_rename_test_idx
RENAME
TO
alter_idx_rename_test_idx_2
;
...
...
@@ -250,7 +250,7 @@ ALTER INDEX alter_idx_rename_test_parted_idx RENAME TO alter_idx_rename_test_par
SELECT
relation
::
regclass
,
mode
FROM
pg_locks
WHERE
pid
=
pg_backend_pid
()
AND
locktype
=
'relation'
AND
relation
::
regclass
::
text
LIKE
'alter
\_
idx%'
ORDER
BY
relation
::
regclass
::
text
;
ORDER
BY
relation
::
regclass
::
text
COLLATE
"C"
;
COMMIT
;
BEGIN
;
ALTER
TABLE
alter_idx_rename_test_idx_2
RENAME
TO
alter_idx_rename_test_idx_3
;
...
...
@@ -258,7 +258,7 @@ ALTER TABLE alter_idx_rename_test_parted_idx_2 RENAME TO alter_idx_rename_test_p
SELECT
relation
::
regclass
,
mode
FROM
pg_locks
WHERE
pid
=
pg_backend_pid
()
AND
locktype
=
'relation'
AND
relation
::
regclass
::
text
LIKE
'alter
\_
idx%'
ORDER
BY
relation
::
regclass
::
text
;
ORDER
BY
relation
::
regclass
::
text
COLLATE
"C"
;
COMMIT
;
DROP
TABLE
alter_idx_rename_test_2
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment