Skip to content

Commit

Permalink
Merge pull request #623 from 95ulisse/index-columns-order
Browse files Browse the repository at this point in the history
feat(postgres): Ensure ordering of index columns is always stable
  • Loading branch information
k1LoW authored Oct 18, 2024
2 parents 492bedc + 9efe647 commit fe140f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ ORDER BY idx.indexrelid`
SELECT
cls.relname AS indexname,
pg_get_indexdef(idx.indexrelid) AS indexdef,
ARRAY_AGG(attr.attname),
ARRAY_AGG(attr.attname ORDER BY attr.attnum ASC),
descr.description AS comment
FROM pg_index AS idx
INNER JOIN pg_class AS cls ON idx.indexrelid = cls.oid
Expand Down

0 comments on commit fe140f5

Please sign in to comment.