2

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).

Cœur
  • 37,241
  • 25
  • 195
  • 267
f.ashouri
  • 5,409
  • 13
  • 44
  • 52

2 Answers2

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
0

There are plugins like PipelineDB that may be able to help you

Altair7852
  • 1,226
  • 1
  • 14
  • 23