pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Merrill <andrew@compclass.com>
To: Jackson, DeJuan <djackson@cpsgroup.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thomas Lockhart <lockhart@alumni.caltech.edu>
Cc: pgsql-sql@hub.org, PGSQL Hackers <pgsql-hackers@hub.org>
Subject: Re: [SQL] indexing a datetime by date
Date: Tue, 30 Mar 1999 10:11:19 -0800
Message-ID: <370113C7.9555D2BC@compclass.com> (raw)
References: <D05EF808F2DFD211AE4A00105AA1B5D2037A39@cpsmail>

Jackson, DeJuan wrote:

> try:
>  explain select when from notes where datetime_date(when) = 'now'::date;
>         -DEJ

Aha.  That does the trick.  Thanks!

Andrew Merrill




view thread (9+ messages)

Message-ID: <370113C7.9555D2BC@compclass.com>
Permalink:  ../370113C7.9555D2BC@compclass.com/
Also on:    postgresql.org/message-id/370113C7.9555D2BC@compclass.com

 · 

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 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-sql@postgresql.org
  Cc: andrew@compclass.com, djackson@cpsgroup.com, tgl@sss.pgh.pa.us, lockhart@alumni.caltech.edu, pgsql-hackers@hub.org
  Subject: Re: [SQL] indexing a datetime by date
  In-Reply-To: <370113C7.9555D2BC@compclass.com>
  References: <D05EF808F2DFD211AE4A00105AA1B5D2037A39@cpsmail> <370113C7.9555D2BC@compclass.com>

* 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