agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Adam Jensen <hanzer@riseup.net>
Cc: pgsql-sql@lists.postgresql.org <pgsql-sql@lists.postgresql.org>
Subject: Re: interval origami
Date: Fri, 30 Nov 2018 14:57:19 -0300
Message-ID: <20181130175719.l7izv65wjwgkls35@alvherre.pgsql> (raw)
In-Reply-To: <a4b97a40-6c5a-580f-361d-03de6572ce27@riseup.net>

On 2018-Nov-30, Adam Jensen wrote:


> A relational database solution is needed. I am not yet very familiar
> with relational database design and SQL beyond the very basics. So any
> pointers to similar SQL problems with solutions and explanations would
> be tremendously useful at this point. Any hints at all, really, will be
> much appreciated.

This sounds like something you can easily do with range types in
Postgres.  Probably not terribly portable to other DBMSs though.
  https://www.postgresql.org/docs/11/rangetypes.html

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (10+ messages)  latest in thread

Message-ID: <20181130175719.l7izv65wjwgkls35@alvherre.pgsql>
Permalink:  ../20181130175719.l7izv65wjwgkls35@alvherre.pgsql/
Also on:    postgresql.org/message-id/20181130175719.l7izv65wjwgkls35@alvherre.pgsql

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: alvherre@2ndquadrant.com, hanzer@riseup.net, pgsql-sql@lists.postgresql.org
  Subject: Re: interval origami
  In-Reply-To: <20181130175719.l7izv65wjwgkls35@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox