Postgresql – Inserting or merging time-ordered records
I have a table containing weather information for various locations. Each location is identified by an identifier station_id, and each kind of information is identified by a string (e.g. wind_speed, humidity,...). Here is a simplified example. first_time and last_time are…