> For the complete documentation index, see [llms.txt](https://til.yulrizka.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.yulrizka.com/db/postgres-rename-enum.md).

# postgres rename enum

To rename an enum

```
ALTER TYPE name RENAME TO 'new_enum_name'
```

To rename a value (label)

```
ALTER TYPE name RENAME VALUE 'existing_enum_value' TO 'new_enum_value'
```
