Automatic PG columns ordering based on space criterion
Open
Proposal
- Dominant language
- Go
- Stars
- 17.2k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Coming from go-pg/Gorm libraries in which you can describe PG tables like Go structs we were using such alignment for PG tables too because it also coincides with the best practices for sorting columns for space purposes.
[This is a GitLab docs for their developers on "Ordering Table Columns in PostgreSQL"](https://docs.gitlab.com/ee/development/ordering_table_columns.html).
Is there a way we can AUTOMATICALLY order columns in our tables?
I tried to launch `fieldalignment` on `ent` generated directory but the order of columns in my DB doesn't change.
Contributor guide
Assessment
This issue has not been assessed yet.