Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
237 views
in Technique[技术] by (71.8m points)

node.js - Take daily snapshot of table in Postgresql and append it to another table

I have a table in Postgresql which stores product information and it's price. The problem is, as price of the product changes, the prices are updated in existing rows, so I do not have the historical data. I would like to take a snapshot of this table every night at 12:00 and store this data in another table so that I can find out change in price everyday.

The postgresql database is hosted in AWS. I have to write a node.js script which does this task. You can assume the Table structure to be like:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...