mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
The particular table names used in the new inheritance regression test are
prone to sort differently in different locales, as seen in buildfarm results. Let's cast to name not text to avoid that.
This commit is contained in:
parent
cedae13017
commit
21f862e487
@ -1124,7 +1124,7 @@ SELECT a.attrelid::regclass, a.attname, a.attinhcount, e.expected
|
|||||||
FROM (SELECT inhrelid, count(*) AS expected FROM pg_inherits
|
FROM (SELECT inhrelid, count(*) AS expected FROM pg_inherits
|
||||||
WHERE inhparent IN (SELECT inhrelid FROM r) GROUP BY inhrelid) e
|
WHERE inhparent IN (SELECT inhrelid FROM r) GROUP BY inhrelid) e
|
||||||
JOIN pg_attribute a ON e.inhrelid = a.attrelid WHERE NOT attislocal
|
JOIN pg_attribute a ON e.inhrelid = a.attrelid WHERE NOT attislocal
|
||||||
ORDER BY a.attrelid::regclass::text, a.attnum;
|
ORDER BY a.attrelid::regclass::name, a.attnum;
|
||||||
attrelid | attname | attinhcount | expected
|
attrelid | attname | attinhcount | expected
|
||||||
----------+---------+-------------+----------
|
----------+---------+-------------+----------
|
||||||
t2 | aaaa | 1 | 1
|
t2 | aaaa | 1 | 1
|
||||||
|
@ -370,6 +370,6 @@ SELECT a.attrelid::regclass, a.attname, a.attinhcount, e.expected
|
|||||||
FROM (SELECT inhrelid, count(*) AS expected FROM pg_inherits
|
FROM (SELECT inhrelid, count(*) AS expected FROM pg_inherits
|
||||||
WHERE inhparent IN (SELECT inhrelid FROM r) GROUP BY inhrelid) e
|
WHERE inhparent IN (SELECT inhrelid FROM r) GROUP BY inhrelid) e
|
||||||
JOIN pg_attribute a ON e.inhrelid = a.attrelid WHERE NOT attislocal
|
JOIN pg_attribute a ON e.inhrelid = a.attrelid WHERE NOT attislocal
|
||||||
ORDER BY a.attrelid::regclass::text, a.attnum;
|
ORDER BY a.attrelid::regclass::name, a.attnum;
|
||||||
|
|
||||||
DROP TABLE t1, s1 CASCADE;
|
DROP TABLE t1, s1 CASCADE;
|
||||||
|
Loading…
Reference in New Issue
Block a user