Last Updated Columns With Postgres - Gunnar Morling #316
Replies: 4 comments 2 replies
|
Would it be possible to handle the updated_at with a GENERATED column ? This way, we wouldn't have to add an |
2 replies
|
What a great idea! Bugs me every time. You solution is a definite improvement over having to write (and run) a |
0 replies
|
Interesting approach. What's the benefit of |
0 replies
|
In AliCloud RDS PostgreSQL, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Last Updated Columns With Postgres - Gunnar Morling
In many applications it’s a requirement to keep track of when a record was created and updated the last time.
Often, this is implemented by having columns such as created_at and updated_at within each table.
To make things as simple as possible for application developers,
the database itself should take care of maintaining these values automatically when a record gets inserted or updated.
https://www.morling.dev/blog/last-updated-columns-with-postgres/
All reactions