1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00

Add ORDER BY to test query to stabilize test

for commit dc9e7c9ed9
This commit is contained in:
Peter Eisentraut
2026-05-04 20:59:16 +02:00
parent b5f92b8eb4
commit f6edd8ed70
2 changed files with 6 additions and 4 deletions

View File

@@ -1035,12 +1035,13 @@ ERROR: subqueries within GRAPH_TABLE reference are not supported
-- GRAPH_TABLE subquery in HAVING clause (tests expression mutator)
SELECT src.vname, count(*) FROM v1 AS src
GROUP BY src.vname
HAVING count(*) >= (SELECT count(*) FROM GRAPH_TABLE (g1 MATCH (a IS vl1 | vl2) COLUMNS (a.vname AS n)) WHERE n = src.vname);
HAVING count(*) >= (SELECT count(*) FROM GRAPH_TABLE (g1 MATCH (a IS vl1 | vl2) COLUMNS (a.vname AS n)) WHERE n = src.vname)
ORDER BY vname;
vname | count
-------+-------
v13 | 1
v12 | 1
v11 | 1
v12 | 1
v13 | 1
(3 rows)
-- leave the objects behind for pg_upgrade/pg_dump tests

View File

@@ -593,6 +593,7 @@ SELECT sname, dname FROM GRAPH_TABLE (g1 MATCH (src)->(dest) WHERE out_degree(sr
-- GRAPH_TABLE subquery in HAVING clause (tests expression mutator)
SELECT src.vname, count(*) FROM v1 AS src
GROUP BY src.vname
HAVING count(*) >= (SELECT count(*) FROM GRAPH_TABLE (g1 MATCH (a IS vl1 | vl2) COLUMNS (a.vname AS n)) WHERE n = src.vname);
HAVING count(*) >= (SELECT count(*) FROM GRAPH_TABLE (g1 MATCH (a IS vl1 | vl2) COLUMNS (a.vname AS n)) WHERE n = src.vname)
ORDER BY vname;
-- leave the objects behind for pg_upgrade/pg_dump tests