Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
beeforpork
· 5y ago · 0 comments
Why do you need the versioning_trigger on 'INSERT' also? There is no original row to archive in this case, or what does this do?
Comments
[–]
karavelov
5y ago
I guess they have to populate the time range column.
[–]
jerryluc
5y ago
Probably because of:
ON CONFLICT DO UPDATE
See:
https://www.postgresql.org/docs/9.5/sql-insert.html