From: Stephen Frost <sfrost@snowman.net>
To: Mark Johnson <remi9898@gmail.com>
Cc: Jayaram <jairamcbe@gmail.com>
Cc: Adalberto Caccia <adacaccia@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Handling time series data with PostgreSQL
Date: Wed, 7 Oct 2020 16:27:01 -0400
Message-ID: <20201007202701.GF3063@tamriel.snowman.net> (raw)
In-Reply-To: <CADZ4tWMZGTP4CE=5i+5bCouR_KqvCVW0HDN=3Q6wsqMk6FA90A@mail.gmail.com>
References: <CALE4XR1t32ki9ABGxiSUzRL9Ad1oLUJzM=1b+CSTYEBxtu-VFA@mail.gmail.com>
<CA+vZ_Ezcm81vmi_Kegg1ycBW-LAhV8=-mO13_xRaDZcCUG10VQ@mail.gmail.com>
<CALE4XR1wef+w9jFoyzvW87XvDTwo=bjNvs4mR7u944DO7rwsrA@mail.gmail.com>
<20201007144101.GA3063@tamriel.snowman.net>
<CADZ4tWMZGTP4CE=5i+5bCouR_KqvCVW0HDN=3Q6wsqMk6FA90A@mail.gmail.com>
Greetings,
* Mark Johnson (remi9898@gmail.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
Attachments:
signature.asc (application/pgp-signature, 818B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: sfrost@snowman.net, remi9898@gmail.com, jairamcbe@gmail.com, adacaccia@gmail.com
Subject: Re: Handling time series data with PostgreSQL
In-Reply-To: <20201007202701.GF3063@tamriel.snowman.net>
References: <CALE4XR1t32ki9ABGxiSUzRL9Ad1oLUJzM=1b+CSTYEBxtu-VFA@mail.gmail.com> <CA+vZ_Ezcm81vmi_Kegg1ycBW-LAhV8=-mO13_xRaDZcCUG10VQ@mail.gmail.com> <CALE4XR1wef+w9jFoyzvW87XvDTwo=bjNvs4mR7u944DO7rwsrA@mail.gmail.com> <20201007144101.GA3063@tamriel.snowman.net> <CADZ4tWMZGTP4CE=5i+5bCouR_KqvCVW0HDN=3Q6wsqMk6FA90A@mail.gmail.com> <20201007202701.GF3063@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox