I have a spatio-temporal database in Postgresql that is continuously updates. I was wondering if there is a technique for continuous query in this database? for example I have temperature data that updates every minute in the database for specific area. I want to perform aggregate queries to show me the temperature every hour (aggregated value).
Asked
Active
Viewed 2,542 times
2 Answers
3
No, you can't continuously update query, but you can receive notification on events of importance and reissue your query.

Michael Krelin - hacker
- 138,757
- 24
- 193
- 173
-
You mean by LISTEN/NOTIFY techniques? Yes but can I perform other functions (like aggregation) using the information from notifications? – f.ashouri Aug 23 '12 at 10:46
-
That's the first part of the answer ;-) So you can either get updated data and do the aggregation on client side or reissue the original query. Details depend on your particular tasks. – Michael Krelin - hacker Aug 23 '12 at 10:51