Hacker News new | ask | show | jobs
by hn_throwaway_99 1029 days ago
> Just so I know for future reference, what system do you use for DB object comments?

Postgres supports this natively (there was actually an earlier HN post today about "little known Postgres features" that mentioned it): https://www.postgresql.org/docs/current/sql-comment.html

We use it extensively because tools like Datagrip will display these comments in the schema browser. It would be pretty trivial I imagine to update your tool to pull these comments from the Postgres schema.

1 comments

> (there was actually an earlier HN post today about "little known Postgres features" that mentioned it)

"Lesser Known Postgres Features (2021)":

https://news.ycombinator.com/item?id=37309309