Ensure consistent orderings for ACLS when comparing schemas in the schema diff. #5101

This commit is contained in:
danielkempenich 2022-09-28 01:33:14 -05:00 committed by GitHub
parent e3e0e3db19
commit 545c76a411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 26 additions and 11 deletions

View File

@ -32,4 +32,5 @@ FROM
) d
LEFT JOIN pg_catalog.pg_roles g ON (d.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (d.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname;
GROUP BY g.rolname, gt.rolname
ORDER BY grantee;

View File

@ -32,4 +32,5 @@ FROM
) d
LEFT JOIN pg_catalog.pg_roles g ON (d.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (d.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname;
GROUP BY g.rolname, gt.rolname
ORDER BY grantee;

View File

@ -32,4 +32,5 @@ FROM
) d
LEFT JOIN pg_catalog.pg_roles g ON (d.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (d.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname;
GROUP BY g.rolname, gt.rolname
ORDER BY grantee;

View File

@ -32,4 +32,5 @@ FROM
) d
LEFT JOIN pg_catalog.pg_roles g ON (d.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (d.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname;
GROUP BY g.rolname, gt.rolname
ORDER BY grantee;

View File

@ -44,3 +44,4 @@ FROM
LEFT JOIN pg_catalog.pg_roles g ON (d.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (d.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname
ORDER BY grantee

View File

@ -20,4 +20,5 @@ FROM
) b
LEFT JOIN pg_catalog.pg_roles g ON (b.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (b.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname;
GROUP BY g.rolname, gt.rolname
ORDER BY grantee;

View File

@ -20,4 +20,5 @@ FROM
) b
LEFT JOIN pg_catalog.pg_roles g ON (b.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (b.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname;
GROUP BY g.rolname, gt.rolname
ORDER BY grantee;

View File

@ -20,4 +20,5 @@ FROM
) b
LEFT JOIN pg_catalog.pg_roles g ON (b.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (b.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname;
GROUP BY g.rolname, gt.rolname
ORDER BY grantee;

View File

@ -20,4 +20,5 @@ FROM
) b
LEFT JOIN pg_catalog.pg_roles g ON (b.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (b.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname;
GROUP BY g.rolname, gt.rolname
ORDER BY grantee;

View File

@ -20,4 +20,5 @@ FROM
) b
LEFT JOIN pg_catalog.pg_roles g ON (b.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (b.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname;
GROUP BY g.rolname, gt.rolname
ORDER BY grantee;

View File

@ -20,4 +20,5 @@ FROM
) b
LEFT JOIN pg_catalog.pg_roles g ON (b.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (b.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname;
GROUP BY g.rolname, gt.rolname
ORDER BY grantee;

View File

@ -38,4 +38,5 @@ LEFT JOIN pg_catalog.pg_roles gt ON (d.grantee = gt.oid)
GROUP BY
g.rolname,
gt.rolname
ORDER BY grantee
{% endif %}

View File

@ -36,4 +36,5 @@ LEFT JOIN pg_catalog.pg_roles gt ON (d.grantee = gt.oid)
GROUP BY
g.rolname,
gt.rolname
ORDER BY grantee
{% endif %}

View File

@ -32,4 +32,5 @@ FROM
) d
LEFT JOIN pg_catalog.pg_roles g ON (d.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (d.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname;
GROUP BY g.rolname, gt.rolname
ORDER BY grantee;

View File

@ -26,3 +26,4 @@ FROM
LEFT JOIN pg_catalog.pg_roles g ON (d.grantor = g.oid)
LEFT JOIN pg_catalog.pg_roles gt ON (d.grantee = gt.oid)
GROUP BY g.rolname, gt.rolname
ORDER BY grantee