Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQG2J-0006Tu-Ai for pgsql-general@arkaria.postgresql.org; Wed, 07 Oct 2020 20:27:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kQG1l-0004KH-TZ for pgsql-general@arkaria.postgresql.org; Wed, 07 Oct 2020 20:27:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQG1l-0004Jp-Lg for pgsql-general@lists.postgresql.org; Wed, 07 Oct 2020 20:27:09 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kQG1f-0005HZ-4e for pgsql-general@postgresql.org; Wed, 07 Oct 2020 20:27:08 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id A82025F799; Wed, 7 Oct 2020 16:27:01 -0400 (EDT) Date: Wed, 7 Oct 2020 16:27:01 -0400 From: Stephen Frost To: Mark Johnson Cc: Jayaram , Adalberto Caccia , pgsql-general@postgresql.org Subject: Re: Handling time series data with PostgreSQL Message-ID: <20201007202701.GF3063@tamriel.snowman.net> References: <20201007144101.GA3063@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kRoubgraN86rDphl" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --kRoubgraN86rDphl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --kRoubgraN86rDphl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJffiSVAAoJEO1sijiDR2RVFxgQAJx4z215xArvNQelb6aejr7K DAn+1P1zVfHWrD6+Nwocx4BM8+vrdHR7MGs0LnATmnv6fcXuQGOHEBndXQagZpLV rpnhFIqympoiTm/TcoZe6ZF3kkloSC8ZCNIZKlq3BLTd7Xe6Cqq0h2xUPllvXt5Z aM/h2OEi4gDP0/n4jLVdf340U9UmdfQN1B8sV0nCKtnpiAtinbs3bQbAyLa6ZAj3 yCb3XCqQLTGXQ3TT8fEONj98P4De5+UaOc45WF3ReLkigT3i3fAgqJHzfDrD16gj +NxWBeIN4fGVLT8pUsxQsfefUqmqnqZ/soXpnO9rDM4R8cH42yGQDif+Tb1Wo4xB LGosGXZOcojkRE9fGuLlVMBsGVyMtJKL1SMvTMiKHE5K2I6JOHy1O5fxeCd76PHa pF99Kc56zNJE0ewygGQIKz/szKxBzAyj+im+ui8/PMhTRqVlwKaU15973ZVw91TR eKtPugkm6jAfiCUWqTy5IT+kX6zsBPkSv8hvzAcS+8HiL10/D1QhCdNs6lyOybIH Z1al+9ro+mRdvDtxNOmXgo8a7qBljVsIWEbdIGhuuYw75/Z1ke8GUML49pKdbTKD bGkwNg1QMuI+3irM7GgR5VYzGZgexAgvNJTKq657SRZMLYVpq2AnKxvb9ft+rXr4 7lPI9g/MmdfHox1kdm7/ =gOWr -----END PGP SIGNATURE----- --kRoubgraN86rDphl--