pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jackson, DeJuan <djackson@cpsgroup.com>
To: Herouth Maoz <herouth@oumail.openu.ac.il>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] indexing a datetime by date
Date: Tue, 30 Mar 1999 11:21:12 -0600
Message-ID: <D05EF808F2DFD211AE4A00105AA1B5D2037A23@cpsmail> (raw)


> How about using the ANSI standard CURRENT_DATE instead of either? It's
> already of type date. Or is it considered a function call?
> 
> Herouth
Not sure how PostgreSQL implements that.
It would appear to be implemented just as now().
Try:
 select CURRENT_DATE::TIME, now()::TIME;

	-DEJ



view thread (9+ messages)  latest in thread

Message-ID: <D05EF808F2DFD211AE4A00105AA1B5D2037A23@cpsmail>
Permalink:  ../D05EF808F2DFD211AE4A00105AA1B5D2037A23@cpsmail/
Also on:    postgresql.org/message-id/D05EF808F2DFD211AE4A00105AA1B5D2037A23@cpsmail

 · 

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: djackson@cpsgroup.com, herouth@oumail.openu.ac.il
  Subject: Re: [SQL] indexing a datetime by date
  In-Reply-To: <D05EF808F2DFD211AE4A00105AA1B5D2037A23@cpsmail>
  References: <D05EF808F2DFD211AE4A00105AA1B5D2037A23@cpsmail>

* 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