Re: [GENERAL] time series data - Mailing list pgsql-general

From Nico Williams
Subject Re: [GENERAL] time series data
Date
Msg-id 20171002181453.GD15754@localhost
Whole thread Raw
In response to [GENERAL] time series data  (Khalil Khamlichi <khamlichi.khalil@gmail.com>)
List pgsql-general
You have these choices:
- turn events into INSERTs and UPDATES on a table that represents a  single call
  You might have an events VIEW with INSTED OF insert/update triggers  so you can insert events as the interface for
updatingcalls.
 
- store the events and have a VIEW on the events table that gives you  rows that summarize each call
- both: store the events and the summaries of the calls
  You might have an events table with AFTER INSERT triggers to insert  or update the corresponding rows in the calls
table.

Nico
-- 


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

pgsql-general by date:

Previous
From: Khalil Khamlichi
Date:
Subject: Re: [GENERAL] time series data
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] pg_stat_tmp and pg_upgrade