agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: James Cloos <cloos@jhcloos.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: using possibly null timestamptz columns
Date: Thu, 29 Sep 2016 11:48:02 -0400
Message-ID: <m34m4ywvv1.fsf@carbon.jhcloos.org> (raw)
In-Reply-To: <5497.1475154922@sss.pgh.pa.us>
References: <m3a8eqx4rx.fsf@carbon.jhcloos.org>
	<5086.1475154348@sss.pgh.pa.us>
	<5497.1475154922@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

>>>>> "TL" == Tom Lane <tgl@sss.pgh.pa.us> writes:

TL> So this just reduces to WHERE tstzrange(s, e) @> now().

Thank you!  I forgot about the range types.

I may even switch to a single range column instead of the separate start
and end columns.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6


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



view thread (4+ messages)

Message-ID: <m34m4ywvv1.fsf@carbon.jhcloos.org>
Permalink:  ../m34m4ywvv1.fsf@carbon.jhcloos.org/
Also on:    postgresql.org/message-id/m34m4ywvv1.fsf@carbon.jhcloos.org

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: cloos@jhcloos.com, tgl@sss.pgh.pa.us
  Subject: Re: using possibly null timestamptz columns
  In-Reply-To: <m34m4ywvv1.fsf@carbon.jhcloos.org>

* 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