8000 Release v0.60.6: fix: Skip over dropped attributes when enumerating types (#492) · joeally/postgres-meta · GitHub
[go: up one dir, main page]

Skip to content

v0.60.6

@TomasHubelbauer TomasHubelbauer tagged this 31 Jan 03:36
* Skip over dropped attributes when enumerating types

`pg_attribute` may contain records for attributes that were dropped but Postgres kept them around and instead of deleting them, renamed them to `........pg.dropped.#........` and set their `attisdropped` to `true`.

This ends up generating these dropped attributes as `unknown` fields in the TypeScript types.

In this commit I updated the `types` query to not return these.

Maybe it would be preferrable to instead keep these but skip them only when generating the TypeScript types?

* use `not`

---------

Co-authored-by: Bobbie Soedirgo <bobbie@soedirgo.dev>
Assets 2
Loading
0