From 3daeec4e76ca7147aba07f1f8b004de52570f0c5 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 7 Jul 2024 19:22:59 +0200 Subject: [PATCH] refactor: Make schema cache dumps more predictable with consistent ORDER This helps diffing schema cache changes during development. --- src/PostgREST/SchemaCache.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PostgREST/SchemaCache.hs b/src/PostgREST/SchemaCache.hs index b7abe704d..eb4c1c317 100644 --- a/src/PostgREST/SchemaCache.hs +++ b/src/PostgREST/SchemaCache.hs @@ -748,7 +748,7 @@ tablesSqlQuery = SELECT key_col_usage.table_schema, key_col_usage.table_name, - array_agg(key_col_usage.column_name) as pk_cols + array_agg(key_col_usage.column_name ORDER BY key_col_usage.column_name) as pk_cols FROM tbl_constraints JOIN