Skip to content

Commit 11bcaf3

Browse files
committed
fix: order test on pg <= 16
1 parent eb51e8a commit 11bcaf3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sql/pgrst_schema_cache.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ repeated_references as(
293293
view_name,
294294
resorigtbl,
295295
resorigcol,
296-
array_agg(attname) as view_columns
296+
array_agg(attname order by array_length(path, 1) desc, view_column) as view_columns
297297
from recursion
298298
join pg_attribute vcol on vcol.attrelid = view_id and vcol.attnum = view_column
299299
group by

test/expected/views_key_dependencies.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ select * from all_views_key_dependencies('{test}');
5858
private | stuff | test | stuff | stuff_pkey | p | {"(id,{id})"}
5959
public | i2459_composite_t1 | test | i2459_composite_v1 | i2459_composite_t1_pkey | p | {"(a,{a})","(b,{b})"}
6060
public | i2459_composite_t1 | test | i2459_composite_v1 | i2459_composite_t2_t1_a_t1_b_fkey | f_ref | {"(a,{a})","(b,{b})"}
61-
public | i2459_composite_t2 | test | i2459_composite_v2 | i2459_composite_t2_t1_a_t1_b_fkey | f | {"(t1_a,\"{t1_a2,t1_a1}\")","(t1_b,\"{t1_b2,t1_b1}\")"}
61+
public | i2459_composite_t2 | test | i2459_composite_v2 | i2459_composite_t2_t1_a_t1_b_fkey | f | {"(t1_a,\"{t1_a1,t1_a2}\")","(t1_b,\"{t1_b1,t1_b2}\")"}
6262
public | i2459_self_t | test | i2459_self_v1 | i2459_self_t_parent_fkey | f | {"(parent,\"{grandparent,parent}\")"}
6363
public | i2459_self_t | test | i2459_self_v1 | i2459_self_t_parent_fkey | f_ref | {"(id,{id})"}
6464
public | i2459_self_t | test | i2459_self_v1 | i2459_self_t_pkey | p | {"(id,{id})"}

0 commit comments

Comments
 (0)