pgroll/pkg/state
Andrew Farries a87fa36dda
Support create/drop index with uppercase names (#356)
Fixes https://github.com/xataio/pgroll/issues/355

Postgres stores index names with uppercase characters in the `pg_index`
catalog using the quoted version of the name. For example:

```
"idx_USERS_name"
```

whereas a lowercase index name would be stored as:

```
idx_users_name
```

This is different to how other object types are stored in their
respective catalogs. For example, table names are stored in
the`pg_class` catalog without quotes, regardless of whether they contain
uppercase characters.

This makes it necessary to strip quotes from index names when retrieving
them from the `pg_index` catalog when building the internal schema
representation.
2024-05-16 12:08:58 +01:00
..
errors.go License check in github actions (#123) 2023-09-22 10:31:49 +00:00
state_test.go Restrict state connection search path (#342) 2024-04-22 08:38:11 +01:00
state.go Support create/drop index with uppercase names (#356) 2024-05-16 12:08:58 +01:00
status.go Move logic for the status command into the state and migrations packages (#205) 2023-11-22 12:36:54 +00:00