© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
7 replies
Jacob

How to update the updated_at field automatically

Hey! I'm working with supabase database and I need to create new table with update_at field and that field will be updated automatically on new change. I wondering if there is a better way to enable it rather than that I'll implement complete trigger snippet for that.
I'll probably need it for multiple migrations.
I found that postgresSQL have this
modadatetime
modadatetime
extension but I'm ensure if it should work out of the box with the latest postgres.
https://www.postgresql.org/docs/current/contrib-spi.html#CONTRIB-SPI-MODDATETIME
PostgreSQL Documentation
F.41. spi — Server Programming Interface features/examples
F.41. spi — Server Programming Interface features/examples # F.41.1. refint — Functions for Implementing Referential Integrity F.41.2. autoinc — Functions for …
F.41. spi — Server Programming Interface features/examples
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Automatically update updated_at timestampz
SupabaseSSupabase / help-and-questions
3y ago
updated_at
SupabaseSSupabase / help-and-questions
4y ago
update_at timestamp?! How To?
SupabaseSSupabase / help-and-questions
4y ago
Handing `created_at` and `updated_at`
SupabaseSSupabase / help-and-questions
13mo ago