dbt-labs / dbt-postgres

Apache License 2.0
31 stars 12 forks source link

[Bug] Use a list instead of a set for index changes to perserve order #73

Closed mikealfare closed 6 months ago

mikealfare commented 6 months ago

resolves #72

Problem

We are using a set for the index changes on materialized views. A set is not ordered, which leads to the changes occasionally happening out of order. This is a problem when an index with the same name is being replaced as that has to happen in a particular order (drop first).

Solution

Use a list instead of a set.

Checklist