]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Make some tests more stable by adding more explicit ordering
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 16 Mar 2026 15:24:22 +0000 (16:24 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 16 Mar 2026 15:24:22 +0000 (16:24 +0100)
for some tests added by commit 2f094e7ac69, based on buildfarm results

src/test/regress/expected/create_property_graph.out
src/test/regress/expected/graph_table.out
src/test/regress/sql/create_property_graph.sql
src/test/regress/sql/graph_table.sql

index ffc263cdb776bee0872e2ce9238785c9fbf9e758..bc9a596ec89a41db96432791d36b4327d2890628 100644 (file)
@@ -653,7 +653,7 @@ SELECT * FROM information_schema.pg_property_data_types ORDER BY property_graph_
  regression             | create_property_graph_tests | gt                  | n             | text              |                          |                        |                       |                      |                    | regression        |                  |                |                   |                         |               |                    |               |                    | regression                | pg_catalog               | text                   |               |              |            |                     | n
 (39 rows)
 
-SELECT * FROM information_schema.pg_property_graph_privileges WHERE grantee LIKE 'regress%' ORDER BY property_graph_name;
+SELECT * FROM information_schema.pg_property_graph_privileges WHERE grantee LIKE 'regress%' ORDER BY property_graph_name, grantor, grantee, privilege_type;
        grantor       |       grantee       | property_graph_catalog |    property_graph_schema    | property_graph_name | privilege_type | is_grantable 
 ---------------------+---------------------+------------------------+-----------------------------+---------------------+----------------+--------------
  regress_graph_user1 | regress_graph_user1 | regression             | create_property_graph_tests | g1                  | SELECT         | YES
index 3043a73f00c3424e9f3f30c7faa95050a856a3fa..27c81ec6e42bed6d3c1bb0038fc1590361b23cad 100644 (file)
@@ -446,7 +446,7 @@ SELECT * FROM GRAPH_TABLE (g1 MATCH (src IS vl1 | vl2 | vl3)-[conn]->(dest) COLU
 -- graph'ical query: find a vertex which is not connected to any other vertex as a source or a destination.
 WITH all_connected_vertices AS (SELECT svn, dvn FROM GRAPH_TABLE (g1 MATCH (src)-[conn]->(dest) COLUMNS (src.vname AS svn, dest.vname AS dvn))),
     all_vertices AS (SELECT vn FROM GRAPH_TABLE (g1 MATCH (vertex) COLUMNS (vertex.vname AS vn)))
-SELECT vn FROM all_vertices EXCEPT (SELECT svn FROM all_connected_vertices UNION SELECT dvn FROM all_connected_vertices);
+SELECT vn FROM all_vertices EXCEPT (SELECT svn FROM all_connected_vertices UNION SELECT dvn FROM all_connected_vertices) ORDER BY vn;
  vn  
 -----
  v13
index 5c2ced14753960a3b023f2a605b54c16cdb3b891..241f93df30285b31d1b73645810d0fe135bf04b3 100644 (file)
@@ -278,7 +278,7 @@ SELECT * FROM information_schema.pg_element_table_properties ORDER BY property_g
 SELECT * FROM information_schema.pg_label_properties ORDER BY property_graph_name, label_name, property_name;
 SELECT * FROM information_schema.pg_labels ORDER BY property_graph_name, label_name;
 SELECT * FROM information_schema.pg_property_data_types ORDER BY property_graph_name, property_name;
-SELECT * FROM information_schema.pg_property_graph_privileges WHERE grantee LIKE 'regress%' ORDER BY property_graph_name;
+SELECT * FROM information_schema.pg_property_graph_privileges WHERE grantee LIKE 'regress%' ORDER BY property_graph_name, grantor, grantee, privilege_type;
 
 -- test object address functions
 SELECT pg_describe_object(classid, objid, objsubid) as obj,
index 61a1324d7af84eb5a7ccd955cd66b0b89c1a889a..6d2b08b997bf940f4c3e445443897b84c6468d2b 100644 (file)
@@ -298,7 +298,7 @@ SELECT * FROM GRAPH_TABLE (g1 MATCH (src IS vl1 | vl2 | vl3)-[conn]->(dest) COLU
 -- graph'ical query: find a vertex which is not connected to any other vertex as a source or a destination.
 WITH all_connected_vertices AS (SELECT svn, dvn FROM GRAPH_TABLE (g1 MATCH (src)-[conn]->(dest) COLUMNS (src.vname AS svn, dest.vname AS dvn))),
     all_vertices AS (SELECT vn FROM GRAPH_TABLE (g1 MATCH (vertex) COLUMNS (vertex.vname AS vn)))
-SELECT vn FROM all_vertices EXCEPT (SELECT svn FROM all_connected_vertices UNION SELECT dvn FROM all_connected_vertices);
+SELECT vn FROM all_vertices EXCEPT (SELECT svn FROM all_connected_vertices UNION SELECT dvn FROM all_connected_vertices) ORDER BY vn;
 -- query all connections using a label shared by vertices and edges
 SELECT sn, cn, dn FROM GRAPH_TABLE (g1 MATCH (src IS l1)-[conn IS l1]->(dest IS l1) COLUMNS (src.elname AS sn, conn.elname AS cn, dest.elname AS dn));