Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Error pq: column d.adsrc does not exist #18

Open
gigaplus opened this issue Aug 19, 2021 · 0 comments
Open

Error pq: column d.adsrc does not exist #18

gigaplus opened this issue Aug 19, 2021 · 0 comments

Comments

@gigaplus
Copy link

As of PostgreSQL V12
"Remove obsolete pg_attrdef.adsrc column (Peter Eisentraut)

This column has been deprecated for a long time, because it did not update in response to other catalog changes (such as column renamings). The recommended way to get a text version of a default-value expression from pg_attrdef is pg_get_expr(adbin, adrelid)."
https://www.postgresql.org/docs/12/release-12.html

Solution looks to be replace d.adsrc with pg_get_expr(d.adbin, d.adrelid) in /structs.go

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant