Re: Handling time series data with PostgreSQL

From: Jayaram <jairamcbe(at)gmail(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Mark Johnson <remi9898(at)gmail(dot)com>, Adalberto Caccia <adacaccia(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Handling time series data with PostgreSQL
Date: 2020-10-09 02:13:53
Message-ID: CALE4XR1BPJDen+Ps-wL4mzYRSgEF6fEiZA4Y-VnGRSnDZJc6yw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank you Stephen, Mark for your inputs. I will go through the
documentation for time series data best practices in PGSQL.

Regards,
Jayaram S.

On Thu, Oct 8, 2020 at 1:57 AM Stephen Frost <sfrost(at)snowman(dot)net> wrote:

> Greetings,
>
> * Mark Johnson (remi9898(at)gmail(dot)com) wrote:
> > I think the OP may be referring to Oracle's Temporal Validity feature.
>
> Perhaps, but that's not the only way to manage time series data.
>
> > [ ... ] In earlier releases of each DBMS we tried to accomplish
> > the same by adding pairs of timestamp columns to each table and then
> > writing our own code to handle row filtering. Partitioning isn't needed.
> > Certainly partitioning by range could be used, but it would still require
> > some manual efforts.
>
> I've found that using the range data types can work quite will, with
> overlaps queries, to manage time-series data instead of using pairs of
> timestamp columns. With range data types you can also create exclusion
> constraints to ensure that you don't end up introducing overlapping
> ranges.
>
> Either way require adjusting your queries though, no? And inserting and
> maintaining the data..? I can appreciate wanting to be standards
> compliant but this specific use-case doesn't really provide much
> justification for using this particular feature. Perhaps there are
> better ones.
>
> Thanks,
>
> Stephen
>

--

*Thanks & Regards,Jayaram S,Banglore.Mobile: 91-7760951366.*

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John the Scott 2020-10-09 02:29:31 rum index supported on pg13?
Previous Message Yessica Brinkmann 2020-10-09 01:21:34 Re: Gurjeet Singh Index Adviser User Interface