1
Answer

column rollback to it's default value after a specific amount of time

Photo of Jinsy David

Jinsy David

2y
854
1

hi, is there a way that i could set a timer so a column on a row would rollback to it's default value after a specific amount of time ?
in postgres

Answers (1)

1
Photo of Rajanikant Hawaldar
32 38.8k 456.1k 2y
I think a better solution would be to remodel the table so that you have a date column, and then have your original col as a computed column that checks if the date has passed
Accepted